Algorithmic Archive
LeetCode Problem Notes
Walkthroughs, intuition, and complexity analyses for algorithmic challenges across graphs, matrices, trees, and sorting.
909. Snakes and Ladders (31 May 2025)
Snakes and Ladders
2359. Find Closest Node to Given Two Nodes (30 May 2025)
Find closest node using tree traversal
2191. Sort the Jumbled Numbers (24 July 2024)
Learn how to sort an array of numbers based on a custom digit mapping.
1636. Sort Array by Increasing Frequency (23 July 2024)
Learn how to sort an array by the frequency of elements in ascending order using an unordered map in C++.
2418. Sort the People (22 July 2024)
Learn how to sort a list of people by their heights in descending order using map data structure in C++.
2392. Build a Matrix With Conditions (21 July 2024)
Learn how to construct a valid matrix with given row and column conditions using topological sorting and graph theory.
1605. Find Valid Matrix Given Row and Column Sums (20 July 2024)
Explore how to construct a valid matrix given row and column sums.
1380. Lucky Numbers in a Matrix (19 July 2024)
Expore how to find the lucky numbers in a matrix.
1530. Number of Good Leaf Nodes Pairs (18 July 2024)
Explore how to find the number of good leaf node pairs in a binary tree within a specified distance.