Data structures is broadly classified into 2 categories: 1.Linear 2.Non linear

Arrays, linked lists, stacks, and queues are linear data structures whereas as Trees and graphs are non-linear data structures.

Arrays, linked lists, stacks, and queues are linear data structures whereas as Trees and graphs are non-linear data structures.

An array is a simple data structure that stores a fixed-size sequential collection of elements of the same type

Array

A stack is a linear data structure that follows the Last In, First Out (LIFO) principle

Stacks

A queue is a linear data structure that follows the First In, First Out (FIFO) principle

Queues

A linked list is a data structure that consists of a sequence of nodes, where each node stores a reference to an element and a reference to the next node

Linked lists

A tree is a non-linear data structure that consists of a root node and subtrees of children nodes

Trees

A graph is a non-linear data structure that consists of a set of vertices (nodes) and a set of edges connecting them

Graphs