Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Implement a stack structure

Create a Python class that implements the methods of a stack structure.

Challenge

Implement the following methods.

  • push add an item to the stack
  • pop remove and return the most recent item from the stack
  • peek return the most recent item from the stack

Solution

Whiteboard Images