16 visualizations

Problem library.

Every problem is a purpose-built interactive animation — not a generic step-through. Search, filter by pattern, or just browse.

Browse by pattern

All problems

16 of 16
#1344
Math
Easy

Angle Between Hands of a Clock

Calculate the smaller angle formed by the clock hands.

~3 minMathLC 1344
GeometrySimulation
#2196
Trees
Medium

Create Binary Tree From Descriptions

Construct a binary tree from parent-child relationships.

~5 minTree, Binary TreeLC 2196
Tree ConstructionHash Map
#743
Graphs
Medium

Dijkstra's Algorithm

Find shortest paths from a source node in a weighted graph.

~7 minGraph, HeapLC 743
Shortest PathPriority Queue
#72
Dynamic Programming
Hard

Edit Distance

Compute the minimum operations needed to transform one string into another.

~8 minDynamic Programming, StringLC 72
DPStrings
#461
Bit Manipulation
Easy

Hamming Distance

Count the differing bit positions between two integers.

~3 minBit ManipulationLC 461
Bitwise Operations
#???
Uncategorized
Medium

Max Building

No description available.

~5 minGeneralLC 0
Unknown
#3691
Dynamic Programming
Hard

Maximum Total Subarray Value II

Select exactly k subarrays to maximize the total contribution of max minus min values.

~9 minArray, DPLC 3691
DPMonotonic StackRange Queries
#3558
Trees
Medium

Number of Ways to Assign Edge Weights I

Count valid assignments of weights on tree edges under given constraints.

~8 minTree, MathLC 3558
Tree DPCombinatorics
#3699
Dynamic Programming
Hard

Number of ZigZag Arrays I

Count the total number of valid ZigZag arrays of length n using values in the range [l, r], where no two adjacent elements are equal and no three consecutive elements form a strictly increasing or decreasing sequence.

~12 minArray, MathLC 3699
Dynamic ProgrammingPrefix SumsCombinatorics
#3700
Dynamic Programming
Hard

Number of ZigZag Arrays II

Count the total number of valid ZigZag arrays of length n using values in the range [l, r], where no two adjacent elements are equal and no three consecutive elements form a strictly increasing or decreasing sequence.

~12 minArray, MathLC 3700
Dynamic ProgrammingPrefix SumsCombinatorics
#3612
Strings
Medium

Process String with Special Operations I

Apply special editing operations to transform a string step by step.

~5 minStringLC 3612
SimulationString Processing
#48
Matrix
Medium

Rotate Image

Rotate an NxN matrix by 90 degrees in-place.

~5 minArray, MatrixLC 48
MatrixSimulation
#30
Sliding Window
Hard

Substring with Concatenation of All Words

Find all starting indices where a substring contains all words exactly once.

~8 minString, Hash MapLC 30
Sliding WindowHash MapString Matching
#???
Uncategorized
Medium

Template

No description available.

~5 minGeneralLC 0
Unknown
#???
Uncategorized
Medium

Twosum

No description available.

~5 minGeneralLC 0
Unknown
#3838
Graphs
Hard

Weighted Word Mapping

Build mappings between words while maximizing weighted relationships.

~7 minString, GraphLC 3838
Graph ConstructionHash Map
Open Source

Missing a problem?
Add the animation.

Each visualization is self-contained. Drop your component in the right folder, add one entry to PROBLEMS above, and open a PR.