Leetcode Solution:
- Easy:
- 14.Longest Common Prefix: https://leetcode.com/problems/longest-common-prefix/description/
- 20.Valid Parentheses: https://leetcode.com/problems/valid-parentheses/description/
- 21.Merge two sort linked list: https://leetcode.com/problems/merge-two-sorted-lists
- 28.Find the Index of the First Occurrence in a String: https://leetcode.com/problems/find-the-index-of-the-first-occurrence-in-a-string/description/
- 35.Search Insert Position: https://leetcode.com/problems/search-insert-position/submissions/
- 58.Length of Last Word: https://leetcode.com/problems/length-of-last-word/
- 242.Valid Anagram: https://leetcode.com/problems/valid-anagram/description
- 455.Assign Cookies: https://leetcode.com/problems/assign-cookies/description
- 1422.Maximum Score After Splitting a String: https://leetcode.com/problems/maximum-score-after-splitting-a-string/description
- 1496.Path Crossing: https://leetcode.com/problems/path-crossing/
- 1624.Largest Substring Between Two Equal Characters: https://leetcode.com/problems/largest-substring-between-two-equal-characters
- 1758.Minimum Changes To Make Alternating Binary String: https://leetcode.com/problems/minimum-changes-to-make-alternating-binary-string
- 1897.Redistribute Characters to Make All Strings Equal: https://leetcode.com/problems/redistribute-characters-to-make-all-strings-equal/description
- 1913.Maximum Product Difference Between Two Pairs: https://leetcode.com/problems/maximum-product-difference-between-two-pairs
- 2706.Buy Two Chocolates: https://leetcode.com/problems/buy-two-chocolates/description
- Medium:
- 5.Longest Palindromic Substring: https://leetcode.com/problems/longest-palindromic-substring/description/
- 6.Zigzag Conversion: https://leetcode.com/problems/zigzag-conversion/description/
- 7.Reverse Integer: https://leetcode.com/problems/reverse-integer/
- 91.Decode Ways: https://leetcode.com/problems/decode-ways/description
- 1637.Widest Vertical Area Between Two Points Containing No Points: https://leetcode.com/problems/widest-vertical-area-between-two-points-containing-no-points/description
- 2125.Number of Laser Beams in a Bank: https://leetcode.com/problems/number-of-laser-beams-in-a-bank/description
- 2601.Convert an Array Into a 2D Array With Conditions: https://leetcode.com/problems/convert-an-array-into-a-2d-array-with-conditions
- 2870.Minimum Number of Operations to Make Array Empty: https://leetcode.com/problems/minimum-number-of-operations-to-make-array-empty/description
- Hard:
- 4.Median of Two Sorted Arrays: https://leetcode.com/problems/median-of-two-sorted-arrays/description/
- 1335.Minimum Difficulty of a Job Schedule
- 1531.Length Of Optimal Compression