are fundamental building blocks in computer science that organize and store data in a way that makes it efficient to access and manipulate. They provide a framework for managing information and performing operations on it.Data structures
Common Data StructuresLinear Data Structures:
Arrays: A collection of elements stored in contiguous memory locations, each identified by an index.
Linked Lists: A sequence of Phone Number elements where each element points to the next.
Stacks: A LIFO (Last-In-First-Out) data structure.
Queues: A FIFO (First-In-First-Out) data structure.
Non-Linear Data Structures:
Trees: A hierarchical data structure where each node has zero or more children.
Graphs: A collection of nodes (vertices) connected by edges.
Hash Tables: A data structure that uses a hash function to map keys to indices in an array.