MCPcopy Create free account
hub / github.com/StudyRust/leetcode_rust / main

Function main

2336-smallest-number-in-infinite-set.rs:35–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33}
34
35fn main() {
36 let mut obj = SmallestInfiniteSet::new();
37 obj.add_back(2);
38 println!("{:?}", obj.pop_smallest());
39 obj.add_back(2);
40 println!("{:?}", obj.pop_smallest());
41 obj.add_back(1);
42 println!("{:?}", obj.pop_smallest());
43}

Callers

nothing calls this directly

Calls 1

add_backMethod · 0.80

Tested by

no test coverage detected