Leetcode

See my leetcode problem solving notes

I collated all the leetcode problems i solved on here so you can learn from it. You can search for a problem, filter by language or problem type, narrow by difficulty.

Showing 1-10 of 242 problems

Page 1 of 25

23 Oct 2025PythonMedium

Unique Paths II

count paths from top-left to bottom-right with obstacles using dp with space optimization to O(n).

dynamic-programmingmatrix
23 Oct 2025TypeScriptMedium

Wiggle Sort II

rearrange array in wiggle pattern (nums[0] < nums[1] > nums[2] < ...) using sorted interleaving.

arrayssortinggreedy
14 Oct 2025TypeScriptMedium

Largest Plus Sign

find the largest plus sign order by computing longest consecutive 1s in four directions using dp.

dynamic-programmingmatrix
03 Sept 2025PythonHard

Zuma Game

find minimum balls needed to clear board using dfs with memoization, trying to form groups of 3+.

dfsbacktrackingmemoization
26 Aug 2025PythonHard

Candy

distribute candy to children based on ratings using two-pass greedy approach.

greedyarrays
26 Aug 2025PHPHard

Max Points on a Line

find maximum number of points that lie on the same line using slope calculation and hash map.

hash-tablemathgeometry