You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/**Given an array of integers with possible duplicates, randomly output the index of a given target number. You can assume that the given target number must exist in the array.
6
+
/**
7
+
* 398. Random Pick Index
8
+
*
9
+
* Given an array of integers with possible duplicates,
10
+
* randomly output the index of a given target number. You can assume that the given target number must exist in the array.
9
11
10
12
Note:
11
13
The array size can be very large. Solution that uses too much extra space will not pass the judge.
0 commit comments