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 2f51e0b commit 231f77aCopy full SHA for 231f77a
C++/random-pick-with-blacklist.cpp
@@ -31,13 +31,6 @@ class Solution {
31
unordered_map<int, int> lookup_;
32
};
33
34
-/**
35
- * Your Solution object will be instantiated and called as such:
36
- * Solution obj = new Solution(N, blacklist);
37
- * int param_1 = obj.pick();
38
- */
39
-
40
41
// Time: ctor: O(nlogn)
42
// pick: O(logn)
43
// Space: O(n)
@@ -68,3 +61,9 @@ class Solution2 {
68
61
int n_;
69
62
vector<int> blacklist_;
70
63
64
+
65
+/**
66
+ * Your Solution object will be instantiated and called as such:
67
+ * Solution obj = new Solution(N, blacklist);
+ * int param_1 = obj.pick();
+ */
0 commit comments