Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 869 Bytes

README.md

File metadata and controls

9 lines (6 loc) · 869 Bytes

Data-structures

Data Structure is a way to store and organize data so that it can be used efficiently, My repository includes Data Structure such as Linked List, Stack, Queue, etc.

• Stack

Stack is an abstract data type with a bounded(predefined) capacity. It is a simple data structure that allows adding and removing elements in a particular order. Every time an element is added, it goes on the top of the stack and the only element that can be removed is the element that is at the top of the stack, just like a pile of objects.

• 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.