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

Method new

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

Source from the content-addressed store, hash-verified

10impl SmallestInfiniteSet {
11
12 fn new() -> Self {
13 SmallestInfiniteSet {
14 set: (1..=1000).collect()
15 }
16 }
17
18 fn pop_smallest(&mut self) -> i32 {
19 let mut ret = -1;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected