MCPcopy Create free account
hub / github.com/Aloxaf/LeetCode-Rust / pop

Method pop

src/min_stack.rs:36–42  ·  view source on GitHub ↗

弹出一个元素, 若弹出元素小于0, 说明该元素比原先的 self.min(old) 大, 并且它是现在的最小元素 即 self.min(now) - self.min(old) = pop

(&mut self)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 10

is_symmetric_iterMethod · 0.45
calcMethod · 0.45
calculateMethod · 0.45
find_kth_largest_pqMethod · 0.45
asteroid_collisionMethod · 0.45
is_validMethod · 0.45
eval_rpnMethod · 0.45
merge_k_listsMethod · 0.45
calculateMethod · 0.45
rotateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected