Algorithms & Data Structures
Browse our collection of problems with interactive step-by-step visualizations.
Categories
Bubble Sort
easyInteractive animation and code for Bubble Sort. See how adjacent elements swap and the largest elements bubble to the top.
Selection Sort
easyInteractive visualization and step-by-step implementation of the Selection Sort algorithm in multiple languages. Understand the O(n²) time complexity.
Insertion Sort
easyInteractive visualizer and step-by-step implementation of the Insertion Sort algorithm in multiple languages. Understand the O(n²) time complexity.
Binary Search
easyInteractive visualization of the Binary Search algorithm. Learn how to find an element in a sorted array in O(log n) time complexity.
Linear Search
easyInteractive visualizer for the Linear Search algorithm. Understand how to search an array element by element with O(n) time complexity.
Two Sum
easyInteractive visualizer for the classic Two Sum problem. Learn how to solve it in O(n) time using a Hash Map.
3Sum
mediumInteractive visualizer for the 3Sum problem. Learn how to use Two Pointers and Sorting to find unique triplets that sum to zero in O(n²) time.
Best Time to Buy and Sell Stock
easyInteractive visualization for the Best Time to Buy and Sell Stock algorithm. Learn the optimal O(n) approach using a single pass to maximize profit.
Reverse Linked List
easyInteractive visualization for Reversing a Linked List. Learn how to invert pointers iteratively in O(n) time and O(1) space.
Merge Two Sorted Lists
easyInteractive visualization for merging two sorted linked lists into one. Learn the typical O(n+m) two-pointer technique.