●
Arrays & Hashing
Master array manipulation with hash maps, two pointers, and more.
Categories
3 problems available in this category.
Two Sum
easyInteractive visualizer for the classic Two Sum problem. Learn how to solve it in O(n) time using a Hash Map.
●Arrays & Hashingarrayarrayhash-table
O(O(n))•O(O(n))
Visualize 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.
●Arrays & Hashingarrayarraytwo-pointers
O(O(n²))•O(O(1) or O(n))
Visualize 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.
●Arrays & Hashingarray-barsarraydynamic-programming
O(O(n))•O(O(1))
Visualize