Algorithms
An algorithm is a step-by-step method for solving a problem, such as sorting a list, searching for a value or finding the shortest path through a graph. Knowing the common algorithms and the patterns behind them helps you write faster code and recognise the right approach when a new problem comes along. This page collects every algorithm post on this website, from the sorting and problem-solving pattern references to guides on individual algorithms. Each one explains the idea step by step and shows how to implement it in Java.
2026

Sort Algorithm Reference
Every sorting algorithm in the Algorithm Guide, from the essentials to the joke sorts. Continue reading Sort Algorithm Reference