Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Ainevsia/Leetcode-Rust
/ main
Function
main
219. Contains Duplicate II/Solution.cpp:38–45 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
36
};
37
38
int main() {
39
Solution a;
40
vector<int> v = {1,2,3,1,2,3};
41
int k = 2;
42
auto res = a.containsNearbyDuplicate(v, k);
43
cout << res;
44
return 0;
45
}
46
Callers
nothing calls this directly
Calls
1
containsNearbyDuplicate
Method · 0.80
Tested by
no test coverage detected