~/lc-grind
#221 - Maximal Square
Jan 21, 2026Discover how to find the largest square of 1's in a binary matrix using dynamic programming to efficiently calculate its area.
#188 - Best Time to Buy and Sell Stock IV
Jan 20, 2026Maximize your stock trading profit with at most `k` buy-sell transactions using dynamic programming to navigate the price fluctuations.
#123 - Best Time to Buy and Sell Stock III
Jan 19, 2026Maximize your stock trading profit with at most two buy-sell transactions using dynamic programming to track the best possible gains from left-to-right and right-to-left sweeps of the price array.
#72 - Edit Distance
Jan 16, 2026Master the classic dynamic programming challenge of finding the minimum number of insertions, deletions, and replacements needed to transform one string into another.
#97 - Interleaving String
Jan 15, 2026Determine if a given string can be formed by interleaving two other strings, a classic dynamic programming challenge that tests your ability to manage overlapping subproblems and state transitions.
#63 - Unique Paths II
Jan 14, 2026Navigate a grid with obstacles using dynamic programming to count the number of unique paths a robot can take from the top-left to the bottom-right corner, moving only down or right.
#64 - Minimum Path Sum
Jan 13, 2026Find the minimum sum path from the top-left to bottom-right corner of a grid, moving only down or right, using dynamic programming to efficiently calculate the optimal route.
#120 - Triangle
Jan 12, 2026Find the smallest possible sum from the top to the bottom of a triangle by moving to adjacent numbers in the row below, using dynamic programming for an efficient solution.
#149 - Max Points on a Line
Jan 9, 2026Given an array of points on the X-Y plane, this Hard geometry problem challenges you to find the maximum number of points that can be placed on a single straight line.
#172 - Factorial Trailing Zeroes
Jan 8, 2026Discover the clever math trick to efficiently count the trailing zeroes in a factorial without calculating the massive number itself.