My LeetCode solutions.
LeetCode is a platform offering coding challenges [...]. The service provides coding and algorithmic problems intended for users to practice coding.
My LeetCode profile: Favo02
When I have some spare time and the problem is noteworthy, I write down simple explanations for my solutions. Here is the list because LeetCode doesn't provide a full one.
- #2370 Longest Ideal Subsequence (Bruteforce to Dynamic programming journey)
- #1289 Minimum Falling Path Sum II (Dynamic Programming: basic and optimized solutions)
- #514 Freedom Trail (Naive (greedy) idea to Bruteforce to Memoization (DP))
- #1647 Minimum Deletions to Make Character Frequencies Unique
- #332 Reconstruct Itinerary
- #1584 Min Cost to Connect All Points
- #1631 Path With Minimum Effort
- #1658 Minimum Operations to Reduce X to Zero
- #1048 Longest String Chain
- #799 Champagne Tower
- #880 Decoded String at Index
- #2366 Minimum Replacements to Sort the Array
- #2038 Remove Colored Pieces if Both Neighbors are the Same Color
- #1326 Minimum Number of Taps to Open to Water a Garden
- #2899 Last Visited Integers
- #2900 Longest Unequal Adjacent Groups Subsequence I
- #2050 Parallel Courses III
- #779 K-th Symbol in Grammar (my favourite solution!)
- #1503 Last Moment Before All Ants Fall Out of a Plank
- #1838 Frequency of the Most Frequent Element
- #84 Largest Rectangle in Histogram
- #935 Knight Dialer
- #1611 Minimum One Bit Operations to Make Integers Zero (also proud of this one!)
- #91 Decode Ways
- #1155 Number of Dice Rolls With Target Sum
- #1531 String Compression II
- #930 Binary Subarrays With Sum
- #525 Contiguous Array
- #847 Shortest Path Visiting All Nodes
- #713 Subarray Product Less Than K
- #3097 Shortest Subarray With OR at Least K II
Profile: Favo02