Skip to content

Commit bc750b2

Browse files
committed
Runtime: 6 ms (Top 19.66%) | Memory: 7 MB (Top 71.58%)
1 parent 106e357 commit bc750b2

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed
Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
// Runtime: 6 ms (Top 19.66%) | Memory: 7 MB (Top 71.58%)
12
/**
23
* Definition for singly-linked list.
34
* struct ListNode {
4-
* int val;
5-
* ListNode *next;
6-
* ListNode() : val(0), next(nullptr) {}
7-
* ListNode(int x) : val(x), next(nullptr) {}
8-
* ListNode(int x, ListNode *next) : val(x), next(next) {}
5+
* int val;
6+
* ListNode *next;
7+
* ListNode() : val(0), next(nullptr) {}
8+
* ListNode(int x) : val(x), next(nullptr) {}
9+
* ListNode(int x, ListNode *next) : val(x), next(next) {}
910
* };
1011
*/
1112
class Solution {
@@ -19,4 +20,4 @@ class Solution {
1920
}
2021
return slow;
2122
}
22-
};
23+
};

0 commit comments

Comments
 (0)