Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Ainevsia/Leetcode-Rust
/ MinStack
Class
MinStack
155. Min Stack/src/main.rs:5–8 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
3
}
4
5
struct MinStack {
6
s: Vec<i32>, /* the normal stack */
7
ms: Vec<i32>, /* the min stack */
8
}
9
10
/**
11
* `&self` means the method takes an immutable reference.
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected