Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RandomizedCollection ¶
type RandomizedCollection struct {
// contains filtered or unexported fields
}
func Constructor ¶
func Constructor() RandomizedCollection
func (*RandomizedCollection) GetRandom ¶
func (rc *RandomizedCollection) GetRandom() int
func (*RandomizedCollection) Insert ¶
func (rc *RandomizedCollection) Insert(value int) bool
func (*RandomizedCollection) Remove ¶
func (rc *RandomizedCollection) Remove(value int) bool
Click to show internal directories.
Click to hide internal directories.