There was an error while loading. Please reload this page.
1 parent 3334adc commit 57a6d76Copy full SHA for 57a6d76
C++/find-the-duplicate-number.cpp
@@ -1,7 +1,7 @@
1
// Time: O(n)
2
// Space: O(1)
3
4
-// Two pointers method, reference: http://keithschwarz.com/interesting/code/?dir=find-duplicate
+// Two pointers method, same as Linked List Cycle II
5
class Solution {
6
public:
7
int findDuplicate(vector<int>& nums) {
0 commit comments