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

Method top

155-min-stack.rs:21–23  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

19 }
20
21 fn top(&self) -> i32 {
22 *self.stk.iter().last().unwrap()
23 }
24
25 fn get_min(&self) -> i32 {
26 *self.stk.iter().min().unwrap()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected