Data Structures

Learn about various data structures with interactive visualizations and JavaScript implementations.

Basic Data Structures

Arrays

12345

Contiguous memory locations that store items of the same data type.

Learn More

Linked Lists

ABCD

Linear data structure where elements are not stored at contiguous memory locations.

Learn More

Stacks

Item 1Item 2Item 3Item 4

Linear data structure following LIFO (Last In First Out) principle.

Learn More

Queues

ABCDERearFront

Linear data structure following FIFO (First In First Out) principle.

Learn More

Advanced Data Structures

Trees

83101614

Hierarchical structure with a root value and subtrees of children nodes.

Learn More

Graphs

ABCDEF

Non-linear data structure consisting of vertices and edges connecting these vertices.

Learn More

Heaps

50302015105

Special tree-based data structure where parent nodes are ordered with respect to their children.

Learn More

Hash Tables

0["apple", 5]1["banana", 8]2["orange", 3]3["grape", 2]

Data structure that implements an associative array abstract data type.

Learn More