We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3915d4c commit becaa32Copy full SHA for becaa32
leetcode_solved/leetcode_0142_Linked_List_Cycle_II.java
@@ -3,7 +3,7 @@
3
* Memory Usage: 38.9 MB, less than 81.24% of Java online submissions for Linked List Cycle II.
4
*
5
* 思路:快慢指针法。 细节的是需要证明当快慢两指针相遇时,慢指针再走一倍已走过的路程,最终会停在环处。
6
- * 复杂度:T:O(n), S:O(s)
+ * 复杂度:T:O(n), S:O(1)
7
*/
8
/**
9
* Definition for singly-linked list.
0 commit comments