MCPcopy Index your code
hub / github.com/TheAlgorithms/Rust / mex_using_set

Function mex_using_set

src/general/mex.rs:7–22  ·  view source on GitHub ↗

Find minimum excluded number from a set of given numbers using a set Finds the MEX of the values provided in `arr` Uses [`BTreeSet`](std::collections::BTreeSet) O(nlog(n)) implementation

(arr: &[i64])

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

test_mex_using_setFunction · 0.85

Calls 4

lenMethod · 0.45
insertMethod · 0.45
removeMethod · 0.45
nextMethod · 0.45

Tested by 1

test_mex_using_setFunction · 0.68