Exercises

stringsarrayslinked listtreeeasymediumhardstackqueuegraphhash tablerecursionheapbinary searchbinary treetrien-ary treebinary search treebit manipulationdynamic programming
1. Square a Number
2. Check If Positive
3. Minimum of Two Numbers
4. Add Two Numbers
5. Join Array Elements
6. Check If Even
7. Sum Array Elements
8. Check Range
9. Maximum Array Element
10. Power
11. Count Even Elements
12. Find Element Index
13. Reverse Array
14. Maximum of Two Numbers
15. Check If Odd
16. Number Sign
17. Age Category
18. Count Ones
19. Max Consecutive Ones
20. Sorted Squares
21. Duplicate Zeros
22. Merge Sorted Array
23. Remove Element
24. Remove Duplicates from Sorted Array
25. Check If Double Exists
26. Valid Mountain Array
27. Replace Elements with Greatest on Right
28. Move Zeroes
29. Height Checker
30. Third Maximum Number
31. Pivot Index
32. Plus One
33. Rotate Array
34. Two Sum
35. Minimum Size Subarray Sum
36. Reverse Linked List
37. Populating Next Right Pointers
38. Daily Temperatures
39. Valid Parentheses
40. Evaluate Reverse Polish Notation
41. Decode String
42. Open the Lock
43. Perfect Squares
44. Binary Tree Inorder Traversal
45. Number of Islands
46. Flood Fill
47. 01 Matrix
48. Keys and Rooms
49. Palindrome Linked List
50. Merge Two Sorted Lists
51. Remove Nth Node From End of List
52. Odd Even Linked List
53. Rotate List
54. Remove Duplicates From Sorted List
55. Remove Duplicates From Sorted List II
56. Add Two Numbers
57. Remove Linked List Elements
58. Contains Duplicate
59. Single Number
60. Intersection of Two Arrays
61. Intersection of Two Arrays II
62. Contains Nearby Duplicate
63. Isomorphic Strings
64. Minimum Index Sum of Two Lists
65. First Unique Character in a String
66. Happy Number
67. 4Sum II
68. Top K Frequent Elements
69. Longest Substring Without Repeating Characters
70. Jewels and Stones
71. Valid Sudoku
72. Dominant Index
73. Spiral Matrix
74. Pascal's Triangle
75. Diagonal Traverse
76. Add Binary
77. Implement strStr()
78. Longest Common Prefix
79. Reverse String
80. Reverse Words in a String
81. Reverse Words in a String III
82. Pascal's Triangle II
83. Swap Nodes in Pairs
84. Fibonacci Number
85. Climbing Stairs
86. Maximum Depth of Binary Tree
87. Pow(x, n)
88. Search in a Binary Search Tree
89. K-th Symbol in Grammar
90. Unique Binary Search Trees II
91. Combinations
92. N-Queens
93. Sudoku Solver
94. Largest Rectangle in Histogram
95. Letter Combinations of a Phone Number
96. The Skyline Problem
97. Permutations
98. Sort an Array
99. Search a 2D Matrix II
100. Same Tree
101. Generate Parentheses
102. Minimum Cost to Connect Sticks
103. Kth Largest Element in an Array
104. Furthest Building You Can Reach
105. The K Weakest Rows in a Matrix
106. Last Stone Weight
107. K Closest Points to Origin
108. Meeting Rooms II
109. Kth Smallest Element in a Sorted Matrix
110. Binary Search
111. Search in Rotated Sorted Array
112. Sqrt(x)
113. Find Minimum in Rotated Sorted Array
114. Find Minimum in Rotated Sorted Array II
115. Find Peak Element
116. Find First and Last Position of Element in Sorted Array
117. Find K Closest Elements
118. Find the Duplicate Number
119. Split Array Largest Sum
120. Find K-th Smallest Pair Distance
121. Median of Two Sorted Arrays
122. Find Smallest Letter Greater Than Target
123. Valid Perfect Square
124. Binary Tree Preorder Traversal
125. Binary Tree Postorder Traversal
126. Binary Tree Level Order Traversal
127. Symmetric Tree
128. Path Sum
129. Construct Binary Tree from Inorder and Postorder Traversal
130. Construct Binary Tree from Preorder and Inorder Traversal
131. Populating Next Right Pointers in Each Node II
132. Lowest Common Ancestor of a Binary Tree
133. Replace Words
134. Word Search II
135. Palindrome Pairs
136. Maximum XOR of Two Numbers in an Array
137. N-ary Tree Level Order Traversal
138. N-ary Tree Preorder Traversal
139. N-Ary Tree Postorder Traversal
140. Maximum Depth of N-Ary Tree
141. Validate Binary Search Tree
142. Convert Sorted Array to BST
143. Balanced Binary Tree
144. Insert Into a Binary Search Tree
145. Delete Node in a BST
146. Contains Duplicate III
147. Lowest Common Ancestor of a BST
148. All Paths From Source to Target
149. Rotting Oranges
150. Shortest Path in Binary Matrix
151. Reconstruct Itinerary
152. Leads to Destination
153. Evaluate Division
154. Number of Connected Components
155. Earliest Moment When Everyone Become Friends
156. Number of Provinces
157. Optimize Water Distribution
158. Smallest String With Swaps
159. Graph Valid Tree
160. Alien Dictionary
161. Minimum Height Trees
162. Course Schedule II
163. Parallel Courses
164. Min Cost to Connect All Points
165. Cheapest Flights Within K Stops
166. Path With Minimum Effort
167. Network Delay Time
168. Hamming Weight
169. Counting Bits
170. Reverse Bits
171. Sum of Two Integers
172. Single Number II
173. Single Number III
174. Bitwise AND of Numbers Range
175. Gray Code
176. Convert to Base 7
177. Convert a Number to Hexadecimal
178. Max Students Taking Exam
179. Min Cost Climbing Stairs
180. N-Th Tribonacci Number
181. House Robber
182. Delete and Earn
183. Longest Common Subsequence
184. Maximal Square
185. Maximum Score From Multiplying