Class RandomizedCollection
- java.lang.Object
-
- g0301_0400.s0381_insert_delete_getrandom_o1_duplicates_allowed.RandomizedCollection
-
public class RandomizedCollection extends Object
-
-
Constructor Summary
Constructors Constructor Description RandomizedCollection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getRandom()
boolean
insert(int val)
boolean
remove(int val)
-