MCPcopy Create free account
hub / github.com/VanjaRo/LeetCode / Pop

Method Pop

tasks/150.go:51–55  ·  view source on GitHub ↗

func NewStack() Stack { return stack }

()

Source from the content-addressed store, hash-verified

49// }
50
51func (st *Stack) Pop() int {
52 ret := st.stack[len(st.stack)-1]
53 st.stack = st.stack[:len(st.stack)-1]
54 return ret
55}
56
57func (st *Stack) Push(el int) {
58 st.stack = append(st.stack, el)

Callers 1

evalRPNFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected