We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a25e28 commit b3b9e63Copy full SHA for b3b9e63
contains-duplicate/HC-kang.rs
@@ -1,3 +1,8 @@
1
+/**
2
+ * https://leetcode.com/problems/contains-duplicate
3
+ * T.C. O(n)
4
+ * S.C. O(n)
5
+ */
6
impl Solution {
7
pub fn contains_duplicate(nums: Vec<i32>) -> bool {
8
use std::collections::HashSet;
0 commit comments