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

Method top

225-implement-stack-using-queues.rs:23–25  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

21 }
22
23 fn top(&self) -> i32 {
24 *self.stack_box.last().unwrap()
25 }
26
27 fn empty(&self) -> bool {
28 self.stack_box.len() == 0

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected