Skip to content

almakhamreh/Stack-implementation-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

Stack

This is a simple stack implementation in python using a list.

Basic operations of stack:

Push — Inserts an element at the top

Pop — Returns the top element after removing it from the stack

isEmpty — Returns true if the stack is empty

Peek — Returns the top element without removing it from the stack

size — Returns the length of the list

showItems — prints all the items in the stack

About

This is a simple stack implementation in python using a list.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages