MCPcopy Create free account
hub / github.com/Ainevsia/Leetcode-Rust / new

Method new

155. Min Stack/src/main.rs:17–22  ·  view source on GitHub ↗

initialize your data structure here. */

()

Source from the content-addressed store, hash-verified

15
16 /** initialize your data structure here. */
17 fn new() -> Self {
18 MinStack {
19 s: Vec::new(),
20 ms: Vec::new(),
21 }
22 }
23
24 fn push(&mut self, x: i32) {
25 self.s.push(x);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected