Match the operations with their description.
Stack
Typical operations
Report a typo
Match the items from left and right columns
push
pop
peek
get by index
there is no such operation
inserts an item into the top of the stack
returns the current top element
removes the top item from the stack
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.