Skip to content

Commit 57a6d76

Browse files
committed
Update find-the-duplicate-number.cpp
1 parent 3334adc commit 57a6d76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

C++/find-the-duplicate-number.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Time: O(n)
22
// Space: O(1)
33

4-
// Two pointers method, reference: http://keithschwarz.com/interesting/code/?dir=find-duplicate
4+
// Two pointers method, same as Linked List Cycle II
55
class Solution {
66
public:
77
int findDuplicate(vector<int>& nums) {

0 commit comments

Comments
 (0)