202608211328 Leetcode
Programming puzzles
A centralized list of some Leetcode problems I've solved with write-up explanations and interesting learning deep dives.
This is my centralized list of some Leetcode problems I've solved with write-up explanations and interesting learning deep dives. This is similar how I've written about many years of advent of code (links #wip).
I find that doing Leetcode problems is much less interesting and rewarding if I just do them, get the answer, and move on. I learn way more by really diving into the problem, potential optimizations or readability improvements, and synthesizing my findings into a coherent written artifact.
I have a repository of the code and problems that you can look through as well if you don't want to read the write-ups.
Easy problems
- 202608211329 Leetcode Two Sum
- 202608241338 Leetcode Find the Difference
- 202608311109 Leetcode Top Travelers
- 202609091441 Leetcode Split Strings by Separator
- 202609101233 Leetcode Find Closest Number to Zero
- 202609121650 Leetcode Maximum Number of Words You Can Type
- 202609141114 Leetcode Find Indices of Stable Mountains
- 202609151227 Leetcode Perfect Number
- 202609221728 Leetcode Reverse Prefix of Word
- 202609281244 Leetcode Count Asterisks
- 202610051056 Leetcode Lexicographically Smallest String After a Swap
- 202610081137 Leetcode Prime Number of Set Bits in Binary Representation
- 202611011038 Leetcode Intersection of Two Arrays II
- 202611011250 Leetcode Minimum Amount of Time to Fill Cups
Medium problems
- 202608311501 Leetcode Split Array Into Maximum Number of Subarrays
- 202609141742 Leetcode Number of Perfect Pairs
- 202609222158 Leetcode Minimum Energy to Maintain Brightness
- 202609281520 Leetcode Time Needed to Inform All Employees
- 202610051630 Leetcode Rotate Image
Hard problems
- 202609171030 Leetcode Sum of Floored Pairs
- 202609241055 Leetcode Substring with Concatenation of All Words
Linked from this note
- 202608211329 Leetcode Two Sum
- 202608241338 Leetcode Find the Difference
- 202608311109 Leetcode Top Travelers
- 202608311501 Leetcode Split Array Into Maximum Number of Subarrays
- 202609091441 Leetcode Split Strings by Separator
- 202609101233 Leetcode Find Closest Number to Zero
- 202609121650 Leetcode Maximum Number of Words You Can Type
- 202609141114 Leetcode Find Indices of Stable Mountains
- 202609141742 Leetcode Number of Perfect Pairs
- 202609151227 Leetcode Perfect Number
- 202609171030 Leetcode Sum of Floored Pairs
- 202609221728 Leetcode Reverse Prefix of Word
- 202609222158 Leetcode Minimum Energy to Maintain Brightness
- 202609241055 Leetcode Substring with Concatenation of All Words
- 202609281244 Leetcode Count Asterisks
- 202609281520 Leetcode Time Needed to Inform All Employees
- 202610051056 Leetcode Lexicographically Smallest String After a Swap
- 202610051630 Leetcode Rotate Image
- 202610081137 Leetcode Prime Number of Set Bits in Binary Representation
- 202611011038 Leetcode Intersection of Two Arrays II
- 202611011250 Leetcode Minimum Amount of Time to Fill Cups