Algorithm Visualizations

Algorithm Visualizations

Explore algorithm visualizations code snippets and tutorials

Algorithm Visualizations

Binomial coefficient: Examples & Code

Binomial coefficient: Update a single Pascal row backward to compute C(n,k) without intermediate division. Explore a worked example, complexity and tested code.

Algorithm Visualizations

Pascal triangle: Examples & Code

Pascal triangle: Each entry is the sum of the two entries above it; the outer edges are one. Explore a worked example, complexity and tested code.

Algorithm Visualizations

Minimum-cost monotone grid path: Examples & Code

Minimum-cost monotone grid path: Minimize total cost from top-left to bottom-right, including both endpoints; move only right or down. Explore a worked…

Algorithm Visualizations

Longest palindromic subsequence: Examples & Code

Longest palindromic subsequence: Build the longest palindrome length for every interval; skipped characters are allowed. Explore a worked example, complexity…

Algorithm Visualizations

Longest palindromic substring: Examples & Code

Longest palindromic substring: Expand around odd and even centers; ties choose the earliest starting position. Explore a worked example, complexity and tested…