Storage values

Report a typo

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.

Put the items in the correct order
myStack.Push(val)
val, _ := myStack.Pop()
myStack.Push(4)
myStack.Push(5)
___

Create a free account to access the full topic