DS Visualizer

Competitive Programming Tool

Made by Ayush

Categories
Filter by data structure type

Data Structures

Interactive visualizations for competitive programming data structures and algorithms

Array
basicEasy
Linear collection of elements stored in contiguous memory locations
Time: O(1) access, O(n) searchSpace: O(n)
Stack
basicEasy
LIFO (Last In, First Out) data structure
Time: O(1) all operationsSpace: O(n)
Queue
basicEasy
FIFO (First In, First Out) data structure
Time: O(1) all operationsSpace: O(n)
Linked List
basicEasy
Linear data structure with nodes containing data and pointers
Time: O(n) search, O(1) insert/deleteSpace: O(n)
Binary Tree
treeMedium
Hierarchical structure where each node has at most two children
Time: O(log n) balanced, O(n) worstSpace: O(n)
Binary Search Tree
treeMedium
Binary tree with ordered property for efficient searching
Time: O(log n) average, O(n) worstSpace: O(n)
Binary Heap
treeMedium
Complete binary tree with heap property for priority operations
Time: O(log n) insert/extract, O(1) peekSpace: O(n)
Segment Tree
advancedHard
Tree for answering range queries and updates efficiently
Time: O(log n) query/updateSpace: O(n)
Fenwick Tree (BIT)
advancedHard
Binary Indexed Tree for prefix sum queries and updates
Time: O(log n) all operationsSpace: O(n)
Disjoint Set Union
graphMedium
Union-Find data structure for tracking disjoint sets
Time: O(α(n)) amortizedSpace: O(n)
Graph Traversal
graphMedium
DFS and BFS algorithms for exploring graph structures
Time: O(V + E) both algorithmsSpace: O(V)
Hash Table
advancedMedium
Key-value pairs with hash function for fast access
Time: O(1) average, O(n) worstSpace: O(n)