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

Function main

232-implement-queue-using-stacks.rs:32–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30}
31
32fn main() {
33 let mut obj = MyQueue::new();
34 obj.push(1);
35 obj.push(2);
36 let ret_2: i32 = obj.pop();
37 let ret_3: i32 = obj.peek();
38 let ret_4: bool = obj.empty();
39 println!(" {:?} {:?} {:?}", ret_2, ret_3, ret_4);
40}

Callers

nothing calls this directly

Calls 4

peekMethod · 0.80
pushMethod · 0.45
popMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected