Home Leetcode

This is where I post my notes for Leetcode problems I have solved. I try to focus more on the theoretical aspects and patterns rather than the cleanest or the most optimal solution—this is meant to build an intuition for approaching similar problems and spotting the underlying patterns and concepts. As such, I try to put more emphasis on where the solution comes from, and why it is correct in a somewhat more rigorous manner (although there might not be proofs of its optimality). Hopefully they will also be of some use to others.

Arrays

Dynamic Programming

Graphs

Heaps

Trees

Strings

Review

These are brief study notes for important data structures/algorithm concepts that are foundational in Leetcode problems, to be used as a reference for the leetcode solutions above.