Skip to content

Commit 0dadeeb

Browse files
authoredJul 8, 2018
Update random-pick-with-blacklist.cpp
1 parent fa05575 commit 0dadeeb

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed
 

‎C++/random-pick-with-blacklist.cpp

+6-7
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,6 @@ class Solution {
3131
unordered_map<int, int> lookup_;
3232
};
3333

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-
4134
// Time: ctor: O(nlogn)
4235
// pick: O(logn)
4336
// Space: O(n)
@@ -68,3 +61,9 @@ class Solution2 {
6861
int n_;
6962
vector<int> blacklist_;
7063
};
64+
65+
/**
66+
* Your Solution object will be instantiated and called as such:
67+
* Solution obj = new Solution(N, blacklist);
68+
* int param_1 = obj.pick();
69+
*/

0 commit comments

Comments
 (0)
Please sign in to comment.