ALGOHAY

ALGOHAY

Algorithms, demystified — data-structure guides, complexity tools, and interview prep for developers.

From analyzing Big O growth and solving recurrences with the Master Theorem to working through amortized and recursion-tree analysis, estimating interview complexity, and comparing the classic algorithms, AlgoHay pairs free hands-on complexity tools with practical guides and a richly illustrated museum. Reason clearly, code faster.

Explore the toolsExplore the Museum of Algorithms →

Algorithm & Complexity Tools

Free tools for reasoning about algorithms — Big O complexity analyzer, Master Theorem solver, amortized analysis calculator, recursion tree calculator, interview complexity estimator, and an algorithm comparison table.

Museum of Algorithms

Wander an immersive museum of the ideas that shape the way we compute — classic algorithms and the data structures behind them alongside the pioneers who founded the field and the theory and foundations that make it rigorous, each in its own gallery, so you can get to know the stories behind every great idea: how each one came to be, what makes it matter, and the role it plays in shaping how we build software.

Tour the museum →

From the Journal

Fresh guides on sorting and searching, data structures, complexity and Big O, dynamic programming, and graph algorithms, plus practical tips for analyzing code, acing technical interviews, and writing faster, cleaner algorithms.

Two Pointers and Sliding Window: From O(n^2) to O(n)

Many array and string problems that look like they need every pair of positions can be solved in one pass with two indexes. Here are the patterns, the condition each depends on, and a random test against brute force.

Common Bugs in Algorithm Code and How to Catch Them

Most bugs in algorithm code come from a short list of mistakes. Here are the common ones in Python, each with a run that shows it, and a testing habit that catches the rest: compare against a slow, obviously correct version on random inputs.

Recurrence Relations and the Recursion Tree Method

A recurrence describes a recursive algorithm's cost in terms of smaller calls. Draw it as a tree, sum each level, and the shape of the tree gives you the bound.

Binary Trees and Binary Search Trees: Traversals and O(h)

A binary search tree finds a key in time proportional to its height. That is O(log n) when the tree is balanced and O(n) when it degrades into a chain.

Backtracking: Subsets, Permutations and N-Queens in Python

Backtracking builds candidate solutions one choice at a time and undoes each choice after exploring it. Here is the template, applied to subsets, permutations and N-Queens, with what pruning does and does not change about the running time.

Recursion Explained: Base Cases, the Call Stack and Limits

A recursive function calls itself on a smaller input until it reaches a base case. Trace calls on the stack, see why Python raises RecursionError, and learn when to use a loop instead.

Browse all guides →

Keep Learning

Practical know-how on algorithms, data structures, and complexity theory, plain-language explainers on Big O, recurrences, and dynamic programming, and seasoned tips for students and interview-preppers alike — everything you need to dig deeper and reason further.

Visit the Learn hub →