LeetCode ID Problem Solution Remark 0001 Two Sum Solution 0002 Add Two Numbers Solution 0003 Longest Substring Without Repeating Characters Solution 0004 Median of Two Sorted Arrays Solution 0005 Longest Palindromic Substring Solution To Optimize 0009 Palindrome Number Solution 0011 Container With Most Water Solution 0013 Roman to Integer Solution Not Recommend 0014 Longest Common Prefix Solution 0015 3Sum Solution 0016 3Sum Closest Solution 0017 Letter Combinations of a Phone Number Solution 0018 4Sum Solution 0020 Valid Parentheses Solution 0021 Merge Two Sorted Lists Solution 0026 Remove Duplicates from Sorted Array Solution 0027 Remove Element Solution 0035 Search Insert Position Solution 0046 Permutations Solution 0049 Group Anagrams Solution 0062 Unique Paths Solution 0063 Unique Paths II Solution 0064 Minimum Path Sum Solution 0070 Climbing Stairs Solution 0075 Sort Colors Solution 0076 Minimum Window Substring Solution 0080 Remove Duplicates from Sorted Array II Solution 0088 Merge Sorted Array Solution 0093 Restore IP Addresses Solution 0120 Triangle Solution 0125 Valid Palindrome Solution 0131 Palindrome Partitioning Solution 0149 Max Points on a Line Solution 0167 Two Sum II - Input array is sorted Solution 0198 House Robber Solution 0202 Happy Number Solution 0203 Remove Linked List Elements Solution 0205 Isomorphic Strings Solution 0208 Implement Trie (Prefix Tree) Solution 0209 Minimum Size Subarray Sum Solution 0211 Add and Search Word - Data structure design Solution 0213 House Robber II Solution 0215 Kth Largest Element in an Array Solution 0217 Contains Duplicate Solution 0219 Contains Duplicate II Solution 0220 Contains Duplicate III Solution 0242 Valid Anagram Solution 0279 Valid Anagram Solution 0283 Move Zeroes Solution 0290 Word Pattern Solution 0300 Longest Increasing Subsequence Solution 0303 Range Sum Query - Immutable Solution 0307 Range Sum Query - Mutable Solution 0338 Counting Bits Solution 0343 Integer Break Solution 0344 Reverse String Solution 0345 Reverse Vowels of a String Solution 0349 Intersection of Two Arrays Solution 0350 Intersection of Two Arrays II Solution 0376 Wiggle Subsequence Solution 0438 Find All Anagrams in a String Solution 0447 Number of Boomerangs Solution 0454 4Sum II Solution 0530 Minimum Absolute Difference in BST Solution 0606 Construct String from Binary Tree Solution 0677 Map Sum Pairs Solution 0700 Search in a Binary Search Tree Solution 0783 Minimum Distance Between BST Nodes Solution 0804 Unique Morse Code Words Solution 0938 Range Sum of BST Solution 1025 Divisor Game Solution