Comprehensive Mastery Guide

Sorting Algorithms & Interval Sweep Patterns

Structuring Disordered Data and Custom Comparator Strategies

Sorting is a fundamental primitive in algorithm design. Whether sorting intervals by start times, implementing custom comparators, or utilizing heap-based priority queues, understanding sorting mechanics is vital for efficient algorithmic problem solving.

Sorting Algorithm Patterns

5 core sorting patterns, animated step-by-step in Java. Click a file to open it.

20problems
Algorithm patterns — expand for debug steps & solution
    0
    Practice these — same pattern, different skin