You can paste the solutions directly into LeetCode and they will work
My LeetCode profile: Legonaftik
- 1. Two Sum - Solution
- 2. Add Two Numbers - Solution
- 3. Longest Substring Without Repeating Characters - Solution
- 5. Longest Palindromic Substring - Solution
- 7. Reverse Integer - Solution
- 8. String to Integer (atoi) - Solution
- 11. Container With Most Water - Solution
- 12. Integer to Roman - Solution
- 13. Roman to Integer - Solution
- 14. Longest Common Prefix - Solution
- 15. 3Sum - Solution
- 16. 3Sum Closest - Solution
- 17. Letter Combinations of a Phone Number - Solution
- 18. 4Sum - Solution
- 19. Remove Nth Node From End of List - Solution
- 20. Valid Parentheses - Solution
- 21. Merge Two Sorted Lists - Solution
- 22. Generate Parentheses - Solution
- 25. Reverse Nodes in k-Group - Solution
- 26. Remove Duplicates from Sorted Array - Solution
- 27. Remove Element - Solution
- 28. Find the Index of the First Occurrence in a String - Solution
- 31. Next Permutation - Solution
- 33. Search in Rotated Sorted Array - Solution
- 34. Find First and Last Position of Element in Sorted Array - Solution
- 35. Search Insert Position - Solution
- 36. Valid Sudoku - Solution
- 37. Sudoku Solver - Solution
- 38. Count and Say - Solution
- 42. Trapping Rain Water - Solution
- 45. Jump Game II - Solution
- 46. Permutations - Solution
- 47. Permutations II - Solution
- 48. Rotate Image - Solution
- 49. Group Anagrams - Solution
- 52. N-Queens II - Solution
- 53. Maximum Subarray - Solution
- 54. Spiral Matrix - Solution
- 56. Merge Intervals - Solution
- 57. Insert Interval - Solution
- 59. Spiral Matrix II - Solution
- 60. Permutation Sequence - Solution
- 61. Rotate List - Solution
- 62. Unique Paths - Solution
- 63. Unique Paths II - Solution
- 64. Minimum Path Sum - Solution
- 66. Plus One - Solution
- 70. Climbing Stairs - Solution
- 71. Simplify Path - Solution
- 73. Set Matrix Zeroes - Solution
- 74. Search a 2D Matrix - Solution
- 75. Sort Colors - Solution
- 76. Minimum Window Substring - Solution
- 81. Search in Rotated Sorted Array II - Solution
- 82. Remove Duplicates from Sorted List II - Solution
- 83. Remove Duplicates from Sorted List - Solution
- 86. Partition List - Solution
- 88. Merge Sorted Array - Solution
- 89. Gray Code - Solution
- 90. Subsets II - Solution
- 91. Decode Ways - Solution
- 92. Reverse Linked List II - Solution
- 94. Binary Tree Inorder Traversal - Solution
- 95. Unique Binary Search Trees II - Solution
- 96. Unique Binary Search Trees - Solution
- 97. Interleaving String - Solution
- 98. Validate Binary Search Tree - Solution
- 99. Recover Binary Search Tree - Solution
- 101. Symmetric Tree - Solution
- 102. Binary Tree Level Order Traversal - Solution
- 103. Binary Tree Zigzag Level Order Traversal - Solution
- 104. Maximum Depth of Binary Tree - Solution
- 105. Construct Binary Tree from Preorder and Inorder Traversal - Solution
- 108. Convert Sorted Array to Binary Search Tree - Solution
- 109. Convert Sorted List to Binary Search Tree - Solution
- 112. Path Sum - Solution
- 113. Path Sum II - Solution
- 114. Flatten Binary Tree to Linked List - Solution
- 116. Populating Next Right Pointers in Each Node - Solution
- 117. Populating Next Right Pointers in Each Node II - Solution
- 118. Pascal's Triangle - Solution
- 121. Best Time to Buy and Sell Stock - Solution
- 122. Best Time to Buy and Sell Stock II - Solution
- 124. Binary Tree Maximum Path Sum - Solution
- 125. Valid Palindrome - Solution
- 126. Word Ladder II - Solution
- 127. Word Ladder - Solution
- 128. Longest Consecutive Sequence - Solution
- 129. Sum Root to Leaf Numbers - Solution
- 130. Surrounded Regions - Solution
- 131. Palindrome Partitioning - Solution
- 132. Palindrome Partitioning II - Solution
- 134. Gas Station - Solution
- 135. Candy - Solution
- 136. Single Number - Solution
- 137. Single Number II - Solution
- 138. Copy List with Random Pointer - Solution
- 141. Linked List Cycle - Solution
- 142. Linked List Cycle II - Solution
- 144. Binary Tree Preorder Traversal - Solution
- 145. Binary Tree Postorder Traversal - Solution
- 146. LRU Cache - Solution
- 147. Insertion Sort List - Solution
- 153. Find Minimum in Rotated Sorted Array - Solution
- 160. Intersection of Two Linked Lists - Solution
- 162. Find Peak Element - Solution
- 163. Missing Ranges - Solution
- 186. Reverse Words in a String II - Solution
- 190. Reverse Bits - Solution
- 198. House Robber - Solution
- 200. Number of Islands - Solution
- 205. Isomorphic Strings - Solution
- 224. Basic Calculator - Solution
- 230. Kth Smallest Element in a BST - Solution
- 235. Lowest Common Ancestor of a Binary Search Tree - Solution
- 236. Lowest Common Ancestor of a Binary Tree - Solution
- 242. Valid Anagram - Solution
- 256. Paint House - Solution
- 261. Graph Valid Tree - Solution
- 265. Paint House II - Solution
- 269. Alien Dictionary - Solution
- 276. Paint Fence - Solution
- 278. First Bad Version - Solution
- 285. Inorder Successor in BST - Solution
- 295. Find Median from Data Stream - Solution
- 300. Longest Increasing Subsequence - Solution
- 328. Odd Even Linked List - Solution
- 331. Verify Preorder Serialization of a Binary Tree - Solution
- 334. Increasing Triplet Subsequence - Solution
- 370. Range Addition - Solution
- 378. Kth Smallest Element in a Sorted Matrix - Solution
- 384. Shuffle an Array - Solution
- 429. N-ary Tree Level Order Traversal - Solution
- 537. Complex Number Multiplication - Solution
- 549. Binary Tree Longest Consecutive Sequence II - Solution
- 565. Array Nesting - Solution
- 598. Range Addition II - Solution
- 633. Sum of Square Numbers - Solution
- 639. Decode Ways II - Solution
- 653. Two Sum IV - Input is a BST - Solution
- 663. Equal Tree Partition - Solution
- 718. Maximum Length of Repeated Subarray - Solution
- 791. Custom Sort String - Solution
- 814. Binary Tree Pruning - Solution
- 827. Making A Large Island - Solution
- 838. Push Dominoes - Solution
- 899. Orderly Queue - Solution
- 915. Partition Array into Disjoint Intervals - Solution
- 926. Flip String to Monotone Increasing - Solution
- 927. Three Equal Parts - Solution
- 1120. Maximum Average Subtree - Solution
- 1338. Reduce Array Size to The Half - Solution
- 1339. Maximum Product of Splitted Binary Tree - Solution
- 1629. Slowest Key - Solution