Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 1.1 KB

README.md

File metadata and controls

16 lines (10 loc) · 1.1 KB

school-stuff

an open source little project for data structure assignments and code examples

What is a stack!?

a stack is a data structure used to store a collection of objects. Individual items can be added and stored in a stack using a push() method. Objects can be removed using a pop() method, which removes an item from the stack.

source code (push() - pop() - isEmpty() - isFull() - peek() - display())

What is a stack!?

What is a Queue!?

Queue is an abstract data structure, somewhat similar to Stacks. Unlike stacks, a queue is open at both its ends. One end is always used to insert data (enqueue) and the other is used to remove data (dequeue). Queue follows First-In-First-Out methodology, i.e., the data item stored first will be accessed first.

source code (enqueue() - dequeue() - isEmpty() - isFull() - peek() - display())

What is a Queue!?