You have a myStack variable:
myStack := Stack{storage: []int{1, 2, 3}}
Arrange the steps in the correct order so that the myStack variable contains the value [1 2 4 5 3] in the storage variable.
You have a myStack variable:
myStack := Stack{storage: []int{1, 2, 3}}
Arrange the steps in the correct order so that the myStack variable contains the value [1 2 4 5 3] in the storage variable.
myStack.Push(val)val, _ := myStack.Pop()myStack.Push(4)myStack.Push(5)Create a free account to access the full topic