LeetCode Top Interview Questions - mhlptl/solutions GitHub Wiki

Easy

Question Solution
1. Two Sum Solution
7. Reverse Integer Solution
13. Roman to Integer Solution
14. Longest Common Prefix Solution
20. Valid Parentheses Solution
21. Merge Two Sorted Lists Solution
26. Remove Duplicates from Sorted Array Solution
28. Implement strStr() Solution
38. Count and Say Solution
53. Maximum Subarray Solution
66. Plus One Solution
69. Sqrt(x) Solution
70. Climbing Stairs Solution
88. Merge Sorted Array Solution
101. Symmetric Tree Solution
104. Maximum Depth Binary Tree Solution
108. Convert Sorted Array to Binary Search Tree 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
125. Valid Palindrome Solution
136. SingleNumber Solution
141. Linked List Cycle Solution
155. Min Stack Solution
160. Intersection of Two Linked Lists Solution
169. Majority Element Solution
171. Excel Sheet Column Number Solution
172. Factorial Trailing Zeroes Solution
190. Reverse Bits Solution
191. Number of 1 Bits Solution
202. Happy Number Solution
204. Count Primes Solution
206. Reverse Linked List Solution
217. Contains Duplicate Solution
234. Palindrome Linked List Solution
237. Delete Node in a Linked List Solution
242. Valid Anagram Solution
268. Missing Number Solution
283. Move Zeroes Solution
326. Power of Three Solution
344. Reverse String Solution
350. Intersection of Two Arrays II Solution
387. First Unique Character in a String Solution
412. Fizz Buzz Solution

Medium

Question Solution
22. Generate Parentheses Solution
46. Permutations Solution
48. Rotate Image Solution
49. Group Anagrams Solution
78. Subsets Solution
94. Binary Tree Inorder Traversal Solution
102. Binary Tree Level Order Traversal Solution
215. Kth Largest Element in an Array Solution
230. Kth Smallest Element in a BST Solution
238. Product of Array Except Self Solution
287. Find the Duplicate Number Solution
289. Game of Life Solution
328. Odd Even Linked List Solution
347. Top K Frequent Elements Solution