Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/StudyRust/leetcode_rust
/ push
Method
push
225-implement-stack-using-queues.rs:12–14 ·
view source on GitHub ↗
(&mut self, x: i32)
Source
from the content-addressed store, hash-verified
10
}
11
12
fn push(&mut self, x: i32) {
13
self.stack_box.push(x);
14
}
15
16
fn pop(&mut self) -> i32 {
17
let index = self.stack_box.len()-1;
Callers
1
main
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected