insert_delete_getrandom_o1_duplicates_allowed

package
v0.0.0-...-50b2653 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL