Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Ainevsia/Leetcode-Rust
/ basic
Function
basic
155. Min Stack/src/main.rs:53–63 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
51
52
#[test]
53
fn basic() {
54
let mut obj = MinStack::new();
55
obj.push(6);
56
obj.push(3);
57
obj.push(5);
58
obj.push(4);
59
obj.push(2);
60
assert_eq!(2, obj.get_min());
61
obj.pop();
62
assert_eq!(3, obj.get_min());
63
}
64
}
Callers
nothing calls this directly
Calls
2
push
Method · 0.45
pop
Method · 0.45
Tested by
no test coverage detected