MCPcopy Index your code
hub / github.com/Aloxaf/LeetCode-Rust / push

Method push

src/min_stack.rs:21–32  ·  view source on GitHub ↗

每次都将 x - self.min 存入栈内, 并视情况更新 self.min

(&mut self, x: i32)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

add_stringsMethod · 0.45
is_symmetric_iterMethod · 0.45
permuteMethod · 0.45
calcMethod · 0.45
calculateMethod · 0.45
spiral_orderMethod · 0.45
asteroid_collisionMethod · 0.45
count_and_sayMethod · 0.45
is_validMethod · 0.45
generateMethod · 0.45
level_order_bottomMethod · 0.45
all_possible_fbtMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected