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

Function main

155-min-stack.rs:30–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28}
29
30fn main() {
31 let mut obj = MinStack::new();
32 obj.push(-2);
33 obj.push(0);
34 obj.push(-3);
35 println!("{:?}", obj.get_min());
36 println!("{:?}", obj.top());
37 obj.pop();
38 println!("{:?}", obj.get_min());
39 println!("{:?}", obj.top());
40}

Callers

nothing calls this directly

Calls 2

pushMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected