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

Function main

tasks/232.go:5–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import "fmt"
4
5func main() {
6 obj := Constructor()
7 obj.Push(1)
8 obj.Push(2)
9 param_2 := obj.Pop()
10 param_3 := obj.Peek()
11 param_4 := obj.Empty()
12 fmt.Println(param_2)
13 fmt.Println(param_3)
14 fmt.Println(param_4)
15}
16
17type MyQueue struct {
18 stack []int

Callers

nothing calls this directly

Calls 5

PeekMethod · 0.80
EmptyMethod · 0.80
ConstructorFunction · 0.70
PushMethod · 0.45
PopMethod · 0.45

Tested by

no test coverage detected