1. Two Sum |
Easy |
|
2 years ago |
0001-two-sum.py |
2. Add Two Numbers |
Medium |
|
2 years ago |
0002-add-two-numbers.py |
3. Longest Substring Without Repeating Characters |
Medium |
|
2 years ago |
0003-longest-substring-without-repeating-characters.py |
4. Median of Two Sorted Arrays |
Hard |
|
last year |
0004-median-of-two-sorted-arrays.py |
5. Longest Palindromic Substring |
Medium |
|
10 months ago |
0005-longest-palindromic-substring.py |
6. Zigzag Conversion |
Medium |
|
last year |
0006-zigzag-conversion.py |
7. Reverse Integer |
Medium |
|
last year |
0007-reverse-integer.py |
8. String to Integer (atoi) |
Medium |
|
|
|
9. Palindrome Number |
Easy |
|
2 years ago |
0009-palindrome-number.py |
10. Regular Expression Matching |
Hard |
|
|
|
11. Container With Most Water |
Medium |
|
2 years ago |
0011-container-with-most-water.py |
12. Integer to Roman |
Medium |
|
2 years ago |
0012-integer-to-roman.py |
13. Roman to Integer |
Easy |
|
2 years ago |
0013-roman-to-integer.py |
14. Longest Common Prefix |
Easy |
|
2 years ago |
0014-longest-common-prefix.py |
15. 3Sum |
Medium |
|
|
|
16. 3Sum Closest |
Medium |
|
|
|
17. Letter Combinations of a Phone Number |
Medium |
|
2 years ago |
0017-letter-combinations-of-a-phone-number.py |
18. 4Sum |
Medium |
|
|
|
19. Remove Nth Node From End of List |
Medium |
|
2 years ago |
0019-remove-nth-node-from-end-of-list.py |
20. Valid Parentheses |
Easy |
|
2 years ago |
0020-valid-parentheses.py |
21. Merge Two Sorted Lists |
Easy |
|
2 years ago |
0021-merge-two-sorted-lists.py |
22. Generate Parentheses |
Medium |
|
2 years ago |
0022-generate-parentheses.py |
23. Merge k Sorted Lists |
Hard |
|
2 years ago |
0023-merge-k-sorted-lists.py |
24. Swap Nodes in Pairs |
Medium |
|
2 years ago |
0024-swap-nodes-in-pairs.py |
25. Reverse Nodes in k-Group |
Hard |
|
|
|
26. Remove Duplicates from Sorted Array |
Easy |
|
2 years ago |
0026-remove-duplicates-from-sorted-array.py |
27. Remove Element |
Easy |
|
2 years ago |
0027-remove-element.py |
28. Find the Index of the First Occurrence in a String |
Easy |
|
2 years ago |
0028-find-the-index-of-the-first-occurrence-in-a-string.py |
29. Divide Two Integers |
Medium |
|
2 years ago |
0029-divide-two-integers.py |
31. Next Permutation |
Medium |
|
2 years ago |
0031-next-permutation.py |
32. Longest Valid Parentheses |
Hard |
|
2 years ago |
0032-longest-valid-parentheses.py |
33. Search in Rotated Sorted Array |
Medium |
|
last year |
0033-search-in-rotated-sorted-array.py |
34. Find First and Last Position of Element in Sorted Array |
Medium |
|
10 months ago |
0034-find-first-and-last-position-of-element-in-sorted-array.py |
35. Search Insert Position |
Easy |
|
last year |
0035-search-insert-position.py |
36. Valid Sudoku |
Medium |
|
2 years ago |
0036-valid-sudoku.py |
37. Sudoku Solver |
Hard |
|
|
|
38. Count and Say |
Medium |
|
2 years ago |
0038-count-and-say.py |
39. Combination Sum |
Medium |
|
2 years ago |
0039-combination-sum.py |
40. Combination Sum II |
Medium |
|
4 minutes ago |
0040-combination-sum-ii.py |
41. First Missing Positive |
Hard |
|
5 months ago |
0041-first-missing-positive.py |
42. Trapping Rain Water |
Hard |
|
2 years ago |
0042-trapping-rain-water.py |
43. Multiply Strings |
Medium |
|
|
|
44. Wildcard Matching |
Hard |
|
|
|
45. Jump Game II |
Medium |
|
last year |
0045-jump-game-ii.py |
46. Permutations |
Medium |
|
last year |
0046-permutations.py |
47. Permutations II |
Medium |
|
2 years ago |
0047-permutations-ii.py |
48. Rotate Image |
Medium |
|
2 years ago |
0048-rotate-image.py |
49. Group Anagrams |
Medium |
|
2 years ago |
0049-group-anagrams.py |
50. Pow(x, n) |
Medium |
|
2 years ago |
0050-powx-n.py |
51. N-Queens |
Hard |
|
2 years ago |
0051-n-queens.py |
52. N-Queens II |
Hard |
|
2 years ago |
0052-n-queens-ii.py |
53. Maximum Subarray |
Medium |
|
2 years ago |
0053-maximum-subarray.py |
54. Spiral Matrix |
Medium |
|
last year |
0054-spiral-matrix.py |
55. Jump Game |
Medium |
|
2 years ago |
0055-jump-game.py |
56. Merge Intervals |
Medium |
|
last year |
0056-merge-intervals.py |
57. Insert Interval |
Medium |
|
5 months ago |
0057-insert-interval.py |
58. Length of Last Word |
Easy |
|
5 months ago |
0058-length-of-last-word.py |
59. Spiral Matrix II |
Medium |
|
2 years ago |
0059-spiral-matrix-ii.py |
61. Rotate List |
Medium |
|
2 years ago |
0061-rotate-list.py |
62. Unique Paths |
Medium |
|
2 years ago |
0062-unique-paths.py |
63. Unique Paths II |
Medium |
|
last year |
0063-unique-paths-ii.py |
64. Minimum Path Sum |
Medium |
|
last year |
0064-minimum-path-sum.py |
65. Valid Number |
Hard |
|
|
|
66. Plus One |
Easy |
|
|
|
67. Add Binary |
Easy |
|
|
|
68. Text Justification |
Hard |
|
|
|
69. Sqrt(x) |
Easy |
|
|
|
70. Climbing Stairs |
Easy |
|
2 years ago |
0070-climbing-stairs.py |
71. Simplify Path |
Medium |
|
2 years ago |
0071-simplify-path.py |
72. Edit Distance |
Hard |
|
last year |
0072-edit-distance.py |
73. Set Matrix Zeroes |
Medium |
|
|
|
74. Search a 2D Matrix |
Medium |
|
2 years ago |
0074-search-a-2d-matrix.py |
75. Sort Colors |
Medium |
|
last year |
0075-sort-colors.py |
76. Minimum Window Substring |
Hard |
|
2 years ago |
0076-minimum-window-substring.py |
77. Combinations |
Medium |
|
last year |
0077-combinations.py |
78. Subsets |
Medium |
|
3 months ago |
0078-subsets.py |
79. Word Search |
Medium |
|
5 months ago |
0079-word-search.py |
80. Remove Duplicates from Sorted Array II |
Medium |
|
2 years ago |
0080-remove-duplicates-from-sorted-array-ii.py |
81. Search in Rotated Sorted Array II |
Medium |
|
2 years ago |
0081-search-in-rotated-sorted-array-ii.py |
82. Remove Duplicates from Sorted List II |
Medium |
|
2 years ago |
0082-remove-duplicates-from-sorted-list-ii.py |
83. Remove Duplicates from Sorted List |
Easy |
|
last year |
0083-remove-duplicates-from-sorted-list.py |
86. Partition List |
Medium |
|
2 years ago |
0086-partition-list.py |
88. Merge Sorted Array |
Easy |
|
2 years ago |
0088-merge-sorted-array.py |
89. Gray Code |
Medium |
|
|
|
90. Subsets II |
Medium |
|
|
|
91. Decode Ways |
Medium |
|
8 months ago |
0091-decode-ways.py |
92. Reverse Linked List II |
Medium |
|
2 years ago |
0092-reverse-linked-list-ii.py |
93. Restore IP Addresses |
Medium |
|
last year |
0093-restore-ip-addresses.py |
94. Binary Tree Inorder Traversal |
Easy |
|
2 years ago |
0094-binary-tree-inorder-traversal.py |
95. Unique Binary Search Trees II |
Medium |
|
last year |
0095-unique-binary-search-trees-ii.py |
96. Unique Binary Search Trees |
Medium |
|
|
|
97. Interleaving String |
Medium |
|
last year |
0097-interleaving-string.py |
98. Validate Binary Search Tree |
Medium |
|
2 years ago |
0098-validate-binary-search-tree.py |
99. Recover Binary Search Tree |
Medium |
|
2 years ago |
0099-recover-binary-search-tree.py |
100. Same Tree |
Easy |
|
last year |
0100-same-tree.py |
101. Symmetric Tree |
Easy |
|
2 years ago |
0101-symmetric-tree.py |
102. Binary Tree Level Order Traversal |
Medium |
|
2 years ago |
0102-binary-tree-level-order-traversal.py |
103. Binary Tree Zigzag Level Order Traversal |
Medium |
|
last year |
0103-binary-tree-zigzag-level-order-traversal.py |
104. Maximum Depth of Binary Tree |
Easy |
|
last year |
0104-maximum-depth-of-binary-tree.py |
105. Construct Binary Tree from Preorder and Inorder Traversal |
Medium |
|
|
|
107. Binary Tree Level Order Traversal II |
Medium |
|
last year |
0107-binary-tree-level-order-traversal-ii.py |
108. Convert Sorted Array to Binary Search Tree |
Easy |
|
2 years ago |
0108-convert-sorted-array-to-binary-search-tree.py |
109. Convert Sorted List to Binary Search Tree |
Medium |
|
last year |
0109-convert-sorted-list-to-binary-search-tree.py |
110. Balanced Binary Tree |
Easy |
|
last year |
0110-balanced-binary-tree.py |
111. Minimum Depth of Binary Tree |
Easy |
|
last year |
0111-minimum-depth-of-binary-tree.py |
112. Path Sum |
Easy |
|
2 years ago |
0112-path-sum.py |
113. Path Sum II |
Medium |
|
2 years ago |
0113-path-sum-ii.py |
114. Flatten Binary Tree to Linked List |
Medium |
|
2 years ago |
0114-flatten-binary-tree-to-linked-list.py |
116. Populating Next Right Pointers in Each Node |
Medium |
|
7 months ago |
0116-populating-next-right-pointers-in-each-node.py |
117. Populating Next Right Pointers in Each Node II |
Medium |
|
2 years ago |
0117-populating-next-right-pointers-in-each-node-ii.py |
118. Pascal's Triangle |
Easy |
|
2 years ago |
0118-pascals-triangle.py |
119. Pascal's Triangle II |
Easy |
|
10 months ago |
0119-pascals-triangle-ii.py |
120. Triangle |
Medium |
|
|
|
121. Best Time to Buy and Sell Stock |
Easy |
|
2 years ago |
0121-best-time-to-buy-and-sell-stock.py |
122. Best Time to Buy and Sell Stock II |
Medium |
|
|
|
123. Best Time to Buy and Sell Stock III |
Hard |
|
|
|
124. Binary Tree Maximum Path Sum |
Hard |
|
2 years ago |
0124-binary-tree-maximum-path-sum.py |
125. Valid Palindrome |
Easy |
|
last year |
0125-valid-palindrome.py |
126. Word Ladder II |
Hard |
|
|
|
127. Word Ladder |
Hard |
|
2 years ago |
0127-word-ladder.py |
128. Longest Consecutive Sequence |
Medium |
|
2 years ago |
0128-longest-consecutive-sequence.py |
129. Sum Root to Leaf Numbers |
Medium |
|
last year |
0129-sum-root-to-leaf-numbers.py |
130. Surrounded Regions |
Medium |
|
|
|
131. Palindrome Partitioning |
Medium |
|
2 years ago |
0131-palindrome-partitioning.py |
132. Palindrome Partitioning II |
Hard |
|
|
|
133. Clone Graph |
Medium |
|
2 years ago |
0133-clone-graph.py |
134. Gas Station |
Medium |
|
2 years ago |
0134-gas-station.py |
135. Candy |
Hard |
|
last year |
0135-candy.py |
136. Single Number |
Easy |
|
2 years ago |
0136-single-number.py |
137. Single Number II |
Medium |
|
last year |
0137-single-number-ii.py |
138. Copy List with Random Pointer |
Medium |
|
2 years ago |
0138-copy-list-with-random-pointer.py |
139. Word Break |
Medium |
|
last year |
0139-word-break.py |
140. Word Break II |
Hard |
|
3 months ago |
0140-word-break-ii.py |
141. Linked List Cycle |
Easy |
|
last year |
0141-linked-list-cycle.py |
142. Linked List Cycle II |
Medium |
|
|
|
143. Reorder List |
Medium |
|
5 months ago |
0143-reorder-list.py |
144. Binary Tree Preorder Traversal |
Easy |
|
2 years ago |
0144-binary-tree-preorder-traversal.py |
145. Binary Tree Postorder Traversal |
Easy |
|
2 years ago |
0145-binary-tree-postorder-traversal.py |
146. LRU Cache |
Medium |
|
|
|
147. Insertion Sort List |
Medium |
|
|
|
148. Sort List |
Medium |
|
2 years ago |
0148-sort-list.py |
149. Max Points on a Line |
Hard |
|
2 years ago |
0149-max-points-on-a-line.py |
150. Evaluate Reverse Polish Notation |
Medium |
|
2 years ago |
0150-evaluate-reverse-polish-notation.py |
151. Reverse Words in a String |
Medium |
|
2 years ago |
0151-reverse-words-in-a-string.py |
152. Maximum Product Subarray |
Medium |
|
|
|
153. Find Minimum in Rotated Sorted Array |
Medium |
|
|
|
154. Find Minimum in Rotated Sorted Array II |
Hard |
|
|
|
155. Min Stack |
Medium |
|
2 years ago |
0155-min-stack.py |
156. Binary Tree Upside Down |
Medium |
Premium |
|
|
157. Read N Characters Given Read4 |
Easy |
Premium |
|
|
158. Read N Characters Given read4 II - Call Multiple Times |
Hard |
Premium |
|
|
159. Longest Substring with At Most Two Distinct Characters |
Medium |
Premium |
2 years ago |
0159-longest-substring-with-at-most-two-distinct-characters.py |
160. Intersection of Two Linked Lists |
Easy |
|
2 years ago |
0160-intersection-of-two-linked-lists.py |
161. One Edit Distance |
Medium |
Premium |
2 years ago |
0161-one-edit-distance.py |
162. Find Peak Element |
Medium |
|
|
|
163. Missing Ranges |
Easy |
Premium |
last year |
0163-missing-ranges.py |
164. Maximum Gap |
Hard |
|
|
|
165. Compare Version Numbers |
Medium |
|
4 months ago |
0165-compare-version-numbers.py |
166. Fraction to Recurring Decimal |
Medium |
|
|
|
167. Two Sum II - Input Array Is Sorted |
Medium |
|
2 years ago |
0167-two-sum-ii-input-array-is-sorted.py |
168. Excel Sheet Column Title |
Easy |
|
last year |
0168-excel-sheet-column-title.py |
169. Majority Element |
Easy |
|
2 years ago |
0169-majority-element.py |
170. Two Sum III - Data structure design |
Easy |
Premium |
|
|
171. Excel Sheet Column Number |
Easy |
|
2 years ago |
0171-excel-sheet-column-number.py |
172. Factorial Trailing Zeroes |
Medium |
|
|
|
173. Binary Search Tree Iterator |
Medium |
|
2 years ago |
0173-binary-search-tree-iterator.py |
174. Dungeon Game |
Hard |
|
|
|
179. Largest Number |
Medium |
|
|
|
186. Reverse Words in a String II |
Medium |
Premium |
|
|
187. Repeated DNA Sequences |
Medium |
|
|
|
188. Best Time to Buy and Sell Stock IV |
Hard |
|
|
|
189. Rotate Array |
Medium |
|
2 years ago |
0189-rotate-array.py |
190. Reverse Bits |
Easy |
|
last year |
0190-reverse-bits.py |
191. Number of 1 Bits |
Easy |
|
9 months ago |
0191-number-of-1-bits.py |
198. House Robber |
Medium |
|
7 months ago |
0198-house-robber.py |
199. Binary Tree Right Side View |
Medium |
|
last year |
0199-binary-tree-right-side-view.py |
200. Number of Islands |
Medium |
|
2 years ago |
0200-number-of-islands.py |
201. Bitwise AND of Numbers Range |
Medium |
|
6 months ago |
0201-bitwise-and-of-numbers-range.py |
202. Happy Number |
Easy |
|
last year |
0202-happy-number.py |
203. Remove Linked List Elements |
Easy |
|
2 years ago |
0203-remove-linked-list-elements.py |
204. Count Primes |
Medium |
|
|
|
205. Isomorphic Strings |
Easy |
|
10 months ago |
0205-isomorphic-strings.py |
206. Reverse Linked List |
Easy |
|
10 months ago |
0206-reverse-linked-list.py |
207. Course Schedule |
Medium |
|
last year |
0207-course-schedule.py |
208. Implement Trie (Prefix Tree) |
Medium |
|
last year |
0208-implement-trie-prefix-tree.py |
209. Minimum Size Subarray Sum |
Medium |
|
last year |
0209-minimum-size-subarray-sum.py |
210. Course Schedule II |
Medium |
|
|
|
211. Design Add and Search Words Data Structure |
Medium |
|
2 years ago |
0211-design-add-and-search-words-data-structure.py |
212. Word Search II |
Hard |
|
|
|
213. House Robber II |
Medium |
|
|
|
214. Shortest Palindrome |
Hard |
|
|
|
215. Kth Largest Element in an Array |
Medium |
|
2 years ago |
0215-kth-largest-element-in-an-array.py |
216. Combination Sum III |
Medium |
|
2 years ago |
0216-combination-sum-iii.py |
217. Contains Duplicate |
Easy |
|
last year |
0217-contains-duplicate.py |
218. The Skyline Problem |
Hard |
|
|
|
219. Contains Duplicate II |
Easy |
|
2 years ago |
0219-contains-duplicate-ii.py |
221. Maximal Square |
Medium |
|
|
|
222. Count Complete Tree Nodes |
Medium |
|
|
|
223. Rectangle Area |
Medium |
|
2 years ago |
0223-rectangle-area.py |
224. Basic Calculator |
Hard |
|
|
|
225. Implement Stack using Queues |
Easy |
|
last year |
0225-implement-stack-using-queues.py |
226. Invert Binary Tree |
Easy |
|
last year |
0226-invert-binary-tree.py |
227. Basic Calculator II |
Medium |
|
6 months ago |
0227-basic-calculator-ii.py |
228. Summary Ranges |
Easy |
|
2 years ago |
0228-summary-ranges.py |
229. Majority Element II |
Medium |
|
last year |
0229-majority-element-ii.py |
230. Kth Smallest Element in a BST |
Medium |
|
|
|
231. Power of Two |
Easy |
|
2 years ago |
0231-power-of-two.py |
232. Implement Queue using Stacks |
Easy |
|
2 years ago |
0232-implement-queue-using-stacks.py |
234. Palindrome Linked List |
Easy |
|
7 months ago |
0234-palindrome-linked-list.py |
235. Lowest Common Ancestor of a Binary Search Tree |
Medium |
|
2 years ago |
0235-lowest-common-ancestor-of-a-binary-search-tree.py |
236. Lowest Common Ancestor of a Binary Tree |
Medium |
|
2 years ago |
0236-lowest-common-ancestor-of-a-binary-tree.py |
237. Delete Node in a Linked List |
Medium |
|
2 years ago |
0237-delete-node-in-a-linked-list.py |
238. Product of Array Except Self |
Medium |
|
5 months ago |
0238-product-of-array-except-self.py |
239. Sliding Window Maximum |
Hard |
|
last year |
0239-sliding-window-maximum.py |
240. Search a 2D Matrix II |
Medium |
|
|
|
241. Different Ways to Add Parentheses |
Medium |
|
|
|
242. Valid Anagram |
Easy |
|
2 years ago |
0242-valid-anagram.py |
243. Shortest Word Distance |
Easy |
Premium |
last year |
0243-shortest-word-distance.py |
244. Shortest Word Distance II |
Medium |
Premium |
|
|
245. Shortest Word Distance III |
Medium |
Premium |
last year |
0245-shortest-word-distance-iii.py |
246. Strobogrammatic Number |
Easy |
Premium |
2 years ago |
0246-strobogrammatic-number.py |
247. Strobogrammatic Number II |
Medium |
Premium |
2 years ago |
0247-strobogrammatic-number-ii.py |
249. Group Shifted Strings |
Medium |
Premium |
2 years ago |
0249-group-shifted-strings.py |
250. Count Univalue Subtrees |
Medium |
Premium |
last year |
0250-count-univalue-subtrees.py |
251. Flatten 2D Vector |
Medium |
Premium |
2 years ago |
0251-flatten-2d-vector.py |
252. Meeting Rooms |
Easy |
Premium |
2 years ago |
0252-meeting-rooms.py |
253. Meeting Rooms II |
Medium |
Premium |
2 years ago |
0253-meeting-rooms-ii.py |
254. Factor Combinations |
Medium |
Premium |
|
|
255. Verify Preorder Sequence in Binary Search Tree |
Medium |
Premium |
4 months ago |
0255-verify-preorder-sequence-in-binary-search-tree.py |
256. Paint House |
Medium |
Premium |
2 years ago |
0256-paint-house.py |
257. Binary Tree Paths |
Easy |
|
last year |
0257-binary-tree-paths.py |
258. Add Digits |
Easy |
|
2 years ago |
0258-add-digits.py |
259. 3Sum Smaller |
Medium |
Premium |
|
|
260. Single Number III |
Medium |
|
3 months ago |
0260-single-number-iii.py |
261. Graph Valid Tree |
Medium |
Premium |
|
|
263. Ugly Number |
Easy |
|
2 years ago |
0263-ugly-number.py |
264. Ugly Number II |
Medium |
|
|
|
266. Palindrome Permutation |
Easy |
Premium |
last week |
0266-palindrome-permutation.py |
267. Palindrome Permutation II |
Medium |
Premium |
|
|
268. Missing Number |
Easy |
|
2 years ago |
0268-missing-number.py |
269. Alien Dictionary |
Hard |
Premium |
|
|
270. Closest Binary Search Tree Value |
Easy |
Premium |
10 months ago |
0270-closest-binary-search-tree-value.py |
271. Encode and Decode Strings |
Medium |
Premium |
last year |
0271-encode-and-decode-strings.py |
273. Integer to English Words |
Hard |
|
|
|
274. H-Index |
Medium |
|
|
|
275. H-Index II |
Medium |
|
|
|
276. Paint Fence |
Medium |
Premium |
6 months ago |
0276-paint-fence.py |
277. Find the Celebrity |
Medium |
Premium |
2 years ago |
0277-find-the-celebrity.py |
278. First Bad Version |
Easy |
|
|
|
279. Perfect Squares |
Medium |
|
2 years ago |
0279-perfect-squares.py |
280. Wiggle Sort |
Medium |
Premium |
last year |
0280-wiggle-sort.py |
282. Expression Add Operators |
Hard |
|
|
|
283. Move Zeroes |
Easy |
|
last year |
0283-move-zeroes.py |
284. Peeking Iterator |
Medium |
|
|
|
285. Inorder Successor in BST |
Medium |
Premium |
|
|
286. Walls and Gates |
Medium |
Premium |
|
|
287. Find the Duplicate Number |
Medium |
|
last year |
0287-find-the-duplicate-number.py |
288. Unique Word Abbreviation |
Medium |
Premium |
|
|
289. Game of Life |
Medium |
|
2 years ago |
0289-game-of-life.py |
290. Word Pattern |
Easy |
|
2 years ago |
0290-word-pattern.py |
291. Word Pattern II |
Medium |
Premium |
3 months ago |
0291-word-pattern-ii.py |
293. Flip Game |
Easy |
Premium |
7 months ago |
0293-flip-game.py |
295. Find Median from Data Stream |
Hard |
|
2 years ago |
0295-find-median-from-data-stream.py |
296. Best Meeting Point |
Hard |
Premium |
8 months ago |
0296-best-meeting-point.py |
297. Serialize and Deserialize Binary Tree |
Hard |
|
|
|
298. Binary Tree Longest Consecutive Sequence |
Medium |
Premium |
2 years ago |
0298-binary-tree-longest-consecutive-sequence.py |
299. Bulls and Cows |
Medium |
|
|
|
300. Longest Increasing Subsequence |
Medium |
|
2 years ago |
0300-longest-increasing-subsequence.py |
301. Remove Invalid Parentheses |
Hard |
|
|
|
303. Range Sum Query - Immutable |
Easy |
|
last year |
0303-range-sum-query-immutable.py |
304. Range Sum Query 2D - Immutable |
Medium |
|
2 years ago |
0304-range-sum-query-2d-immutable.py |
305. Number of Islands II |
Hard |
Premium |
4 months ago |
0305-number-of-islands-ii.py |
307. Range Sum Query - Mutable |
Medium |
|
2 years ago |
0307-range-sum-query-mutable.py |
309. Best Time to Buy and Sell Stock with Cooldown |
Medium |
|
2 years ago |
0309-best-time-to-buy-and-sell-stock-with-cooldown.py |
310. Minimum Height Trees |
Medium |
|
4 months ago |
0310-minimum-height-trees.py |
311. Sparse Matrix Multiplication |
Medium |
Premium |
2 years ago |
0311-sparse-matrix-multiplication.py |
314. Binary Tree Vertical Order Traversal |
Medium |
Premium |
2 years ago |
0314-binary-tree-vertical-order-traversal.py |
316. Remove Duplicate Letters |
Medium |
|
2 years ago |
0316-remove-duplicate-letters.py |
317. Shortest Distance from All Buildings |
Hard |
Premium |
|
|
318. Maximum Product of Word Lengths |
Medium |
|
2 years ago |
0318-maximum-product-of-word-lengths.py |
319. Bulb Switcher |
Medium |
|
last year |
0319-bulb-switcher.py |
320. Generalized Abbreviation |
Medium |
Premium |
|
|
322. Coin Change |
Medium |
|
2 years ago |
0322-coin-change.py |
323. Number of Connected Components in an Undirected Graph |
Medium |
Premium |
2 years ago |
0323-number-of-connected-components-in-an-undirected-graph.py |
325. Maximum Size Subarray Sum Equals k |
Medium |
Premium |
|
|
326. Power of Three |
Easy |
|
2 years ago |
0326-power-of-three.py |
328. Odd Even Linked List |
Medium |
|
2 years ago |
0328-odd-even-linked-list.py |
329. Longest Increasing Path in a Matrix |
Hard |
|
2 years ago |
0329-longest-increasing-path-in-a-matrix.py |
331. Verify Preorder Serialization of a Binary Tree |
Medium |
|
|
|
332. Reconstruct Itinerary |
Hard |
|
last year |
0332-reconstruct-itinerary.py |
333. Largest BST Subtree |
Medium |
Premium |
|
|
334. Increasing Triplet Subsequence |
Medium |
|
last year |
0334-increasing-triplet-subsequence.py |
337. House Robber III |
Medium |
|
|
|
338. Counting Bits |
Easy |
|
last year |
0338-counting-bits.py |
339. Nested List Weight Sum |
Medium |
Premium |
|
|
340. Longest Substring with At Most K Distinct Characters |
Medium |
Premium |
last year |
0340-longest-substring-with-at-most-k-distinct-characters.py |
341. Flatten Nested List Iterator |
Medium |
|
10 months ago |
0341-flatten-nested-list-iterator.py |
342. Power of Four |
Easy |
|
2 years ago |
0342-power-of-four.py |
343. Integer Break |
Medium |
|
last year |
0343-integer-break.py |
344. Reverse String |
Easy |
|
2 years ago |
0344-reverse-string.py |
345. Reverse Vowels of a String |
Easy |
|
2 years ago |
0345-reverse-vowels-of-a-string.py |
346. Moving Average from Data Stream |
Easy |
Premium |
last year |
0346-moving-average-from-data-stream.py |
347. Top K Frequent Elements |
Medium |
|
2 years ago |
0347-top-k-frequent-elements.py |
348. Design Tic-Tac-Toe |
Medium |
Premium |
last year |
0348-design-tic-tac-toe.py |
349. Intersection of Two Arrays |
Easy |
|
last year |
0349-intersection-of-two-arrays.py |
350. Intersection of Two Arrays II |
Easy |
|
last year |
0350-intersection-of-two-arrays-ii.py |
351. Android Unlock Patterns |
Medium |
Premium |
yesterday |
0351-android-unlock-patterns.py |
353. Design Snake Game |
Medium |
Premium |
|
|
354. Russian Doll Envelopes |
Hard |
|
|
|
355. Design Twitter |
Medium |
|
|
|
358. Rearrange String k Distance Apart |
Hard |
Premium |
last year |
0358-rearrange-string-k-distance-apart.py |
359. Logger Rate Limiter |
Easy |
Premium |
|
|
360. Sort Transformed Array |
Medium |
Premium |
|
|
362. Design Hit Counter |
Medium |
Premium |
2 years ago |
0362-design-hit-counter.py |
364. Nested List Weight Sum II |
Medium |
Premium |
|
|
366. Find Leaves of Binary Tree |
Medium |
Premium |
2 years ago |
0366-find-leaves-of-binary-tree.py |
367. Valid Perfect Square |
Easy |
|
|
|
368. Largest Divisible Subset |
Medium |
|
6 months ago |
0368-largest-divisible-subset.py |
369. Plus One Linked List |
Medium |
Premium |
|
|
370. Range Addition |
Medium |
Premium |
|
|
373. Find K Pairs with Smallest Sums |
Medium |
|
last year |
0373-find-k-pairs-with-smallest-sums.py |
374. Guess Number Higher or Lower |
Easy |
|
2 years ago |
0374-guess-number-higher-or-lower.py |
376. Wiggle Subsequence |
Medium |
|
|
|
377. Combination Sum IV |
Medium |
|
2 years ago |
0377-combination-sum-iv.py |
378. Kth Smallest Element in a Sorted Matrix |
Medium |
|
|
|
379. Design Phone Directory |
Medium |
Premium |
|
|
380. Insert Delete GetRandom O(1) |
Medium |
|
7 months ago |
0380-insert-delete-getrandom-o1.py |
381. Insert Delete GetRandom O(1) - Duplicates allowed |
Hard |
|
|
|
382. Linked List Random Node |
Medium |
|
2 years ago |
0382-linked-list-random-node.py |
383. Ransom Note |
Easy |
|
2 years ago |
0383-ransom-note.py |
384. Shuffle an Array |
Medium |
|
|
|
387. First Unique Character in a String |
Easy |
|
2 years ago |
0387-first-unique-character-in-a-string.py |
389. Find the Difference |
Easy |
|
2 years ago |
0389-find-the-difference.py |
392. Is Subsequence |
Easy |
|
2 years ago |
0392-is-subsequence.py |
394. Decode String |
Medium |
|
|
|
395. Longest Substring with At Least K Repeating Characters |
Medium |
|
|
|
399. Evaluate Division |
Medium |
|
last year |
0399-evaluate-division.py |
401. Binary Watch |
Easy |
|
|
|
402. Remove K Digits |
Medium |
|
4 months ago |
0402-remove-k-digits.py |
403. Frog Jump |
Hard |
|
last year |
0403-frog-jump.py |
404. Sum of Left Leaves |
Easy |
|
4 months ago |
0404-sum-of-left-leaves.py |
406. Queue Reconstruction by Height |
Medium |
|
2 years ago |
0406-queue-reconstruction-by-height.py |
408. Valid Word Abbreviation |
Easy |
Premium |
|
|
409. Longest Palindrome |
Easy |
|
10 months ago |
0409-longest-palindrome.py |
410. Split Array Largest Sum |
Hard |
|
2 years ago |
0410-split-array-largest-sum.py |
412. Fizz Buzz |
Easy |
|
2 years ago |
0412-fizz-buzz.py |
413. Arithmetic Slices |
Medium |
|
2 years ago |
0413-arithmetic-slices.py |
414. Third Maximum Number |
Easy |
|
7 months ago |
0414-third-maximum-number.py |
415. Add Strings |
Easy |
|
10 months ago |
0415-add-strings.py |
416. Partition Equal Subset Sum |
Medium |
|
|
|
417. Pacific Atlantic Water Flow |
Medium |
|
2 years ago |
0417-pacific-atlantic-water-flow.py |
419. Battleships in a Board |
Medium |
|
|
|
421. Maximum XOR of Two Numbers in an Array |
Medium |
|
2 years ago |
0421-maximum-xor-of-two-numbers-in-an-array.py |
422. Valid Word Square |
Easy |
Premium |
last year |
0422-valid-word-square.py |
423. Reconstruct Original Digits from English |
Medium |
|
|
|
424. Longest Repeating Character Replacement |
Medium |
|
|
|
426. Convert Binary Search Tree to Sorted Doubly Linked List |
Medium |
Premium |
|
|
429. N-ary Tree Level Order Traversal |
Medium |
|
last year |
0429-n-ary-tree-level-order-traversal.py |
430. Flatten a Multilevel Doubly Linked List |
Medium |
|
|
|
431. Encode N-ary Tree to Binary Tree |
Hard |
Premium |
2 years ago |
0431-encode-n-ary-tree-to-binary-tree.py |
432. All O-one Data Structure |
Hard |
|
|
|
433. Minimum Genetic Mutation |
Medium |
|
2 years ago |
0433-minimum-genetic-mutation.py |
434. Number of Segments in a String |
Easy |
|
10 months ago |
0434-number-of-segments-in-a-string.py |
435. Non-overlapping Intervals |
Medium |
|
|
|
436. Find Right Interval |
Medium |
|
|
|
437. Path Sum III |
Medium |
|
|
|
438. Find All Anagrams in a String |
Medium |
|
2 years ago |
0438-find-all-anagrams-in-a-string.py |
439. Ternary Expression Parser |
Medium |
Premium |
last year |
0439-ternary-expression-parser.py |
441. Arranging Coins |
Easy |
|
|
|
442. Find All Duplicates in an Array |
Medium |
|
5 months ago |
0442-find-all-duplicates-in-an-array.py |
443. String Compression |
Medium |
|
last year |
0443-string-compression.py |
445. Add Two Numbers II |
Medium |
|
last year |
0445-add-two-numbers-ii.py |
448. Find All Numbers Disappeared in an Array |
Easy |
|
6 months ago |
0448-find-all-numbers-disappeared-in-an-array.py |
449. Serialize and Deserialize BST |
Medium |
|
|
|
450. Delete Node in a BST |
Medium |
|
|
|
451. Sort Characters By Frequency |
Medium |
|
2 years ago |
0451-sort-characters-by-frequency.py |
452. Minimum Number of Arrows to Burst Balloons |
Medium |
|
2 years ago |
0452-minimum-number-of-arrows-to-burst-balloons.py |
453. Minimum Moves to Equal Array Elements |
Medium |
|
|
|
454. 4Sum II |
Medium |
|
2 years ago |
0454-4sum-ii.py |
455. Assign Cookies |
Easy |
|
8 months ago |
0455-assign-cookies.py |
456. 132 Pattern |
Medium |
|
last year |
0456-132-pattern.py |
459. Repeated Substring Pattern |
Easy |
|
last year |
0459-repeated-substring-pattern.py |
460. LFU Cache |
Hard |
|
|
|
461. Hamming Distance |
Easy |
|
10 months ago |
0461-hamming-distance.py |
462. Minimum Moves to Equal Array Elements II |
Medium |
|
2 years ago |
0462-minimum-moves-to-equal-array-elements-ii.py |
463. Island Perimeter |
Easy |
|
4 months ago |
0463-island-perimeter.py |
468. Validate IP Address |
Medium |
|
|
|
470. Implement Rand10() Using Rand7() |
Medium |
|
|
|
474. Ones and Zeroes |
Medium |
|
|
|
476. Number Complement |
Easy |
|
last year |
0476-number-complement.py |
478. Generate Random Point in a Circle |
Medium |
|
|
|
480. Sliding Window Median |
Hard |
|
|
|
482. License Key Formatting |
Easy |
|
|
|
484. Find Permutation |
Medium |
Premium |
2 years ago |
0484-find-permutation.py |
485. Max Consecutive Ones |
Easy |
|
2 weeks ago |
0485-max-consecutive-ones.py |
486. Predict the Winner |
Medium |
|
last year |
0486-predict-the-winner.py |
487. Max Consecutive Ones II |
Medium |
Premium |
9 months ago |
0487-max-consecutive-ones-ii.py |
489. Robot Room Cleaner |
Hard |
Premium |
|
|
490. The Maze |
Medium |
Premium |
last year |
0490-the-maze.py |
491. Non-decreasing Subsequences |
Medium |
|
last year |
0491-non-decreasing-subsequences.py |
492. Construct the Rectangle |
Easy |
|
4 months ago |
0492-construct-the-rectangle.py |
495. Teemo Attacking |
Easy |
|
5 days ago |
0495-teemo-attacking.py |
496. Next Greater Element I |
Easy |
|
|
|
497. Random Point in Non-overlapping Rectangles |
Medium |
|
|
|
498. Diagonal Traverse |
Medium |
|
|
|
500. Keyboard Row |
Easy |
|
|
|
501. Find Mode in Binary Search Tree |
Easy |
|
10 months ago |
0501-find-mode-in-binary-search-tree.py |
502. IPO |
Hard |
|
last year |
0502-ipo.py |
503. Next Greater Element II |
Medium |
|
|
|
504. Base 7 |
Easy |
|
|
|
505. The Maze II |
Medium |
Premium |
2 years ago |
0505-the-maze-ii.py |
506. Relative Ranks |
Easy |
|
3 months ago |
0506-relative-ranks.py |
507. Perfect Number |
Easy |
|
|
|
508. Most Frequent Subtree Sum |
Medium |
|
|
|
509. Fibonacci Number |
Easy |
|
2 years ago |
0509-fibonacci-number.py |
510. Inorder Successor in BST II |
Medium |
Premium |
2 years ago |
0510-inorder-successor-in-bst-ii.py |
513. Find Bottom Left Tree Value |
Medium |
|
6 months ago |
0513-find-bottom-left-tree-value.py |
515. Find Largest Value in Each Tree Row |
Medium |
|
10 months ago |
0515-find-largest-value-in-each-tree-row.py |
518. Coin Change II |
Medium |
|
last year |
0518-coin-change-ii.py |
520. Detect Capital |
Easy |
|
2 years ago |
0520-detect-capital.py |
521. Longest Uncommon Subsequence I |
Easy |
|
|
|
523. Continuous Subarray Sum |
Medium |
|
2 years ago |
0523-continuous-subarray-sum.py |
524. Longest Word in Dictionary through Deleting |
Medium |
|
2 years ago |
0524-longest-word-in-dictionary-through-deleting.py |
525. Contiguous Array |
Medium |
|
5 months ago |
0525-contiguous-array.py |
526. Beautiful Arrangement |
Medium |
|
2 years ago |
0526-beautiful-arrangement.py |
528. Random Pick with Weight |
Medium |
|
|
|
529. Minesweeper |
Medium |
|
|
|
530. Minimum Absolute Difference in BST |
Easy |
|
last year |
0530-minimum-absolute-difference-in-bst.py |
532. K-diff Pairs in an Array |
Medium |
|
2 years ago |
0532-k-diff-pairs-in-an-array.py |
535. Encode and Decode TinyURL |
Medium |
|
2 years ago |
0535-encode-and-decode-tinyurl.py |
537. Complex Number Multiplication |
Medium |
|
|
|
538. Convert BST to Greater Tree |
Medium |
|
|
|
540. Single Element in a Sorted Array |
Medium |
|
|
|
542. 01 Matrix |
Medium |
|
last year |
0542-01-matrix.py |
543. Diameter of Binary Tree |
Easy |
|
6 months ago |
0543-diameter-of-binary-tree.py |
545. Boundary of Binary Tree |
Medium |
Premium |
|
|
547. Number of Provinces |
Medium |
|
last year |
0547-number-of-provinces.py |
549. Binary Tree Longest Consecutive Sequence II |
Medium |
Premium |
|
|
554. Brick Wall |
Medium |
|
|
|
557. Reverse Words in a String III |
Easy |
|
2 years ago |
0557-reverse-words-in-a-string-iii.py |
560. Subarray Sum Equals K |
Medium |
|
2 years ago |
0560-subarray-sum-equals-k.py |
563. Binary Tree Tilt |
Easy |
|
3 months ago |
0563-binary-tree-tilt.py |
566. Reshape the Matrix |
Easy |
|
2 weeks ago |
0566-reshape-the-matrix.py |
567. Permutation in String |
Medium |
|
2 years ago |
0567-permutation-in-string.py |
572. Subtree of Another Tree |
Easy |
|
|
|
573. Squirrel Simulation |
Medium |
Premium |
9 months ago |
0573-squirrel-simulation.py |
575. Distribute Candies |
Easy |
|
|
|
576. Out of Boundary Paths |
Medium |
|
7 months ago |
0576-out-of-boundary-paths.py |
581. Shortest Unsorted Continuous Subarray |
Medium |
|
|
|
582. Kill Process |
Medium |
Premium |
2 years ago |
0582-kill-process.py |
583. Delete Operation for Two Strings |
Medium |
|
2 years ago |
0583-delete-operation-for-two-strings.py |
588. Design In-Memory File System |
Hard |
Premium |
|
|
589. N-ary Tree Preorder Traversal |
Easy |
|
|
|
593. Valid Square |
Medium |
|
|
|
594. Longest Harmonious Subsequence |
Easy |
|
|
|
598. Range Addition II |
Easy |
|
|
|
599. Minimum Index Sum of Two Lists |
Easy |
|
6 months ago |
0599-minimum-index-sum-of-two-lists.py |
600. Non-negative Integers without Consecutive Ones |
Hard |
|
|
|
605. Can Place Flowers |
Easy |
|
2 years ago |
0605-can-place-flowers.py |
606. Construct String from Binary Tree |
Easy |
|
2 years ago |
0606-construct-string-from-binary-tree.py |
609. Find Duplicate File in System |
Medium |
|
|
|
611. Valid Triangle Number |
Medium |
|
|
|
621. Task Scheduler |
Medium |
|
5 months ago |
0621-task-scheduler.py |
622. Design Circular Queue |
Medium |
|
2 years ago |
0622-design-circular-queue.py |
623. Add One Row to Tree |
Medium |
|
4 months ago |
0623-add-one-row-to-tree.py |
624. Maximum Distance in Arrays |
Medium |
Premium |
9 months ago |
0624-maximum-distance-in-arrays.py |
628. Maximum Product of Three Numbers |
Easy |
|
|
|
633. Sum of Square Numbers |
Medium |
|
2 months ago |
0633-sum-of-square-numbers.py |
637. Average of Levels in Binary Tree |
Easy |
|
2 years ago |
0637-average-of-levels-in-binary-tree.py |
639. Decode Ways II |
Hard |
|
|
|
643. Maximum Average Subarray I |
Easy |
|
|
|
645. Set Mismatch |
Easy |
|
2 years ago |
0645-set-mismatch.py |
646. Maximum Length of Pair Chain |
Medium |
|
last year |
0646-maximum-length-of-pair-chain.py |
647. Palindromic Substrings |
Medium |
|
2 years ago |
0647-palindromic-substrings.py |
648. Replace Words |
Medium |
|
2 months ago |
0648-replace-words.py |
649. Dota2 Senate |
Medium |
|
last year |
0649-dota2-senate.py |
653. Two Sum IV - Input is a BST |
Easy |
|
|
|
657. Robot Return to Origin |
Easy |
|
|
|
658. Find K Closest Elements |
Medium |
|
2 years ago |
0658-find-k-closest-elements.py |
661. Image Smoother |
Easy |
|
8 months ago |
0661-image-smoother.py |
662. Maximum Width of Binary Tree |
Medium |
|
2 years ago |
0662-maximum-width-of-binary-tree.py |
663. Equal Tree Partition |
Medium |
Premium |
|
|
665. Non-decreasing Array |
Medium |
|
|
|
667. Beautiful Arrangement II |
Medium |
|
|
|
669. Trim a Binary Search Tree |
Medium |
|
|
|
671. Second Minimum Node In a Binary Tree |
Easy |
|
|
|
673. Number of Longest Increasing Subsequence |
Medium |
|
last year |
0673-number-of-longest-increasing-subsequence.py |
674. Longest Continuous Increasing Subsequence |
Easy |
|
|
|
677. Map Sum Pairs |
Medium |
|
|
|
678. Valid Parenthesis String |
Medium |
|
4 months ago |
0678-valid-parenthesis-string.py |
680. Valid Palindrome II |
Easy |
|
2 years ago |
0680-valid-palindrome-ii.py |
682. Baseball Game |
Easy |
|
2 years ago |
0682-baseball-game.py |
688. Knight Probability in Chessboard |
Medium |
|
last year |
0688-knight-probability-in-chessboard.py |
692. Top K Frequent Words |
Medium |
|
2 years ago |
0692-top-k-frequent-words.py |
694. Number of Distinct Islands |
Medium |
Premium |
2 years ago |
0694-number-of-distinct-islands.py |
695. Max Area of Island |
Medium |
|
|
|
696. Count Binary Substrings |
Easy |
|
|
|
697. Degree of an Array |
Easy |
|
6 months ago |
0697-degree-of-an-array.py |
700. Search in a Binary Search Tree |
Easy |
|
2 years ago |
0700-search-in-a-binary-search-tree.py |
701. Insert into a Binary Search Tree |
Medium |
|
2 years ago |
0701-insert-into-a-binary-search-tree.py |
702. Search in a Sorted Array of Unknown Size |
Medium |
Premium |
|
|
703. Kth Largest Element in a Stream |
Easy |
|
2 years ago |
0703-kth-largest-element-in-a-stream.py |
704. Binary Search |
Easy |
|
2 years ago |
0704-binary-search.py |
705. Design HashSet |
Easy |
|
2 years ago |
0705-design-hashset.py |
706. Design HashMap |
Easy |
|
last year |
0706-design-hashmap.py |
708. Insert into a Sorted Circular Linked List |
Medium |
Premium |
|
|
709. To Lower Case |
Easy |
|
|
|
713. Subarray Product Less Than K |
Medium |
|
5 months ago |
0713-subarray-product-less-than-k.py |
714. Best Time to Buy and Sell Stock with Transaction Fee |
Medium |
|
|
|
716. Max Stack |
Hard |
Premium |
last year |
0716-max-stack.py |
718. Maximum Length of Repeated Subarray |
Medium |
|
2 years ago |
0718-maximum-length-of-repeated-subarray.py |
722. Remove Comments |
Medium |
|
|
|
724. Find Pivot Index |
Easy |
|
|
|
725. Split Linked List in Parts |
Medium |
|
last year |
0725-split-linked-list-in-parts.py |
729. My Calendar I |
Medium |
|
last year |
0729-my-calendar-i.py |
733. Flood Fill |
Easy |
|
|
|
734. Sentence Similarity |
Easy |
Premium |
last year |
0734-sentence-similarity.py |
735. Asteroid Collision |
Medium |
|
2 years ago |
0735-asteroid-collision.py |
739. Daily Temperatures |
Medium |
|
2 years ago |
0739-daily-temperatures.py |
740. Delete and Earn |
Medium |
|
2 years ago |
0740-delete-and-earn.py |
742. Closest Leaf in a Binary Tree |
Medium |
Premium |
|
|
743. Network Delay Time |
Medium |
|
2 years ago |
0743-network-delay-time.py |
744. Find Smallest Letter Greater Than Target |
Easy |
|
last year |
0744-find-smallest-letter-greater-than-target.py |
746. Min Cost Climbing Stairs |
Easy |
|
10 months ago |
0746-min-cost-climbing-stairs.py |
750. Number Of Corner Rectangles |
Medium |
Premium |
|
|
752. Open the Lock |
Medium |
|
|
|
759. Employee Free Time |
Hard |
Premium |
|
|
760. Find Anagram Mappings |
Easy |
Premium |
last year |
0760-find-anagram-mappings.py |
763. Partition Labels |
Medium |
|
2 years ago |
0763-partition-labels.py |
764. Largest Plus Sign |
Medium |
|
|
|
766. Toeplitz Matrix |
Easy |
|
2 years ago |
0766-toeplitz-matrix.py |
767. Reorganize String |
Medium |
|
last year |
0767-reorganize-string.py |
771. Jewels and Stones |
Easy |
|
2 years ago |
0771-jewels-and-stones.py |
772. Basic Calculator III |
Hard |
Premium |
|
|
774. Minimize Max Distance to Gas Station |
Hard |
Premium |
|
|
775. Global and Local Inversions |
Medium |
|
|
|
779. K-th Symbol in Grammar |
Medium |
|
10 months ago |
0779-k-th-symbol-in-grammar.py |
780. Reaching Points |
Hard |
|
|
|
783. Minimum Distance Between BST Nodes |
Easy |
|
last year |
0783-minimum-distance-between-bst-nodes.py |
784. Letter Case Permutation |
Medium |
|
|
|
785. Is Graph Bipartite? |
Medium |
|
2 years ago |
0785-is-graph-bipartite?.py |
787. Cheapest Flights Within K Stops |
Medium |
|
6 months ago |
0787-cheapest-flights-within-k-stops.py |
790. Domino and Tromino Tiling |
Medium |
|
2 years ago |
0790-domino-and-tromino-tiling.py |
791. Custom Sort String |
Medium |
|
5 months ago |
0791-custom-sort-string.py |
792. Number of Matching Subsequences |
Medium |
|
2 years ago |
0792-number-of-matching-subsequences.py |
794. Valid Tic-Tac-Toe State |
Medium |
|
|
|
797. All Paths From Source to Target |
Medium |
|
2 years ago |
0797-all-paths-from-source-to-target.py |
799. Champagne Tower |
Medium |
|
last year |
0799-champagne-tower.py |
802. Find Eventual Safe States |
Medium |
|
last year |
0802-find-eventual-safe-states.py |
804. Unique Morse Code Words |
Easy |
|
2 years ago |
0804-unique-morse-code-words.py |
814. Binary Tree Pruning |
Medium |
|
2 years ago |
0814-binary-tree-pruning.py |
815. Bus Routes |
Hard |
|
last year |
0815-bus-routes.py |
817. Linked List Components |
Medium |
|
2 years ago |
0817-linked-list-components.py |
819. Most Common Word |
Easy |
|
|
|
820. Short Encoding of Words |
Medium |
|
2 years ago |
0820-short-encoding-of-words.py |
821. Shortest Distance to a Character |
Easy |
|
|
|
824. Goat Latin |
Easy |
|
|
|
826. Most Profit Assigning Work |
Medium |
|
last year |
0826-most-profit-assigning-work.py |
827. Making A Large Island |
Hard |
|
2 years ago |
0827-making-a-large-island.py |
829. Consecutive Numbers Sum |
Hard |
|
|
|
832. Flipping an Image |
Easy |
|
|
|
835. Image Overlap |
Medium |
|
2 years ago |
0835-image-overlap.py |
836. Rectangle Overlap |
Easy |
|
|
|
838. Push Dominoes |
Medium |
|
|
|
839. Similar String Groups |
Hard |
|
|
|
840. Magic Squares In Grid |
Medium |
|
4 days ago |
0840-magic-squares-in-grid.py |
841. Keys and Rooms |
Medium |
|
2 years ago |
0841-keys-and-rooms.py |
844. Backspace String Compare |
Easy |
|
10 months ago |
0844-backspace-string-compare.py |
845. Longest Mountain in Array |
Medium |
|
|
|
846. Hand of Straights |
Medium |
|
2 months ago |
0846-hand-of-straights.py |
847. Shortest Path Visiting All Nodes |
Hard |
|
last year |
0847-shortest-path-visiting-all-nodes.py |
848. Shifting Letters |
Medium |
|
|
|
849. Maximize Distance to Closest Person |
Medium |
|
2 years ago |
0849-maximize-distance-to-closest-person.py |
852. Peak Index in a Mountain Array |
Medium |
|
last year |
0852-peak-index-in-a-mountain-array.py |
856. Score of Parentheses |
Medium |
|
2 years ago |
0856-score-of-parentheses.py |
858. Mirror Reflection |
Medium |
|
|
|
859. Buddy Strings |
Easy |
|
last year |
0859-buddy-strings.py |
861. Score After Flipping Matrix |
Medium |
|
3 months ago |
0861-score-after-flipping-matrix.py |
863. All Nodes Distance K in Binary Tree |
Medium |
|
last year |
0863-all-nodes-distance-k-in-binary-tree.py |
865. Smallest Subtree with all the Deepest Nodes |
Medium |
|
|
|
867. Transpose Matrix |
Easy |
|
2 years ago |
0867-transpose-matrix.py |
869. Reordered Power of 2 |
Medium |
|
2 years ago |
0869-reordered-power-of-2.py |
870. Advantage Shuffle |
Medium |
|
|
|
872. Leaf-Similar Trees |
Easy |
|
7 months ago |
0872-leaf-similar-trees.py |
875. Koko Eating Bananas |
Medium |
|
2 years ago |
0875-koko-eating-bananas.py |
876. Middle of the Linked List |
Easy |
|
2 years ago |
0876-middle-of-the-linked-list.py |
877. Stone Game |
Medium |
|
|
|
880. Decoded String at Index |
Medium |
|
last year |
0880-decoded-string-at-index.py |
881. Boats to Save People |
Medium |
|
2 years ago |
0881-boats-to-save-people.py |
886. Possible Bipartition |
Medium |
|
2 years ago |
0886-possible-bipartition.py |
887. Super Egg Drop |
Hard |
|
|
|
890. Find and Replace Pattern |
Medium |
|
2 years ago |
0890-find-and-replace-pattern.py |
895. Maximum Frequency Stack |
Hard |
|
2 years ago |
0895-maximum-frequency-stack.py |
896. Monotonic Array |
Easy |
|
last year |
0896-monotonic-array.py |
897. Increasing Order Search Tree |
Easy |
|
2 years ago |
0897-increasing-order-search-tree.py |
901. Online Stock Span |
Medium |
|
|
|
904. Fruit Into Baskets |
Medium |
|
last year |
0904-fruit-into-baskets.py |
905. Sort Array By Parity |
Easy |
|
2 years ago |
0905-sort-array-by-parity.py |
909. Snakes and Ladders |
Medium |
|
last year |
0909-snakes-and-ladders.py |
912. Sort an Array |
Medium |
|
last year |
0912-sort-an-array.py |
915. Partition Array into Disjoint Intervals |
Medium |
|
|
|
916. Word Subsets |
Medium |
|
2 years ago |
0916-word-subsets.py |
917. Reverse Only Letters |
Easy |
|
2 years ago |
0917-reverse-only-letters.py |
918. Maximum Sum Circular Subarray |
Medium |
|
last year |
0918-maximum-sum-circular-subarray.py |
921. Minimum Add to Make Parentheses Valid |
Medium |
|
|
|
922. Sort Array By Parity II |
Easy |
|
|
|
923. 3Sum With Multiplicity |
Medium |
|
2 years ago |
0923-3sum-with-multiplicity.py |
926. Flip String to Monotone Increasing |
Medium |
|
|
|
927. Three Equal Parts |
Hard |
|
|
|
929. Unique Email Addresses |
Easy |
|
|
|
930. Binary Subarrays With Sum |
Medium |
|
5 months ago |
0930-binary-subarrays-with-sum.py |
931. Minimum Falling Path Sum |
Medium |
|
7 months ago |
0931-minimum-falling-path-sum.py |
933. Number of Recent Calls |
Easy |
|
|
|
934. Shortest Bridge |
Medium |
|
last year |
0934-shortest-bridge.py |
935. Knight Dialer |
Medium |
|
9 months ago |
0935-knight-dialer.py |
937. Reorder Data in Log Files |
Medium |
|
|
|
938. Range Sum of BST |
Easy |
|
7 months ago |
0938-range-sum-of-bst.py |
941. Valid Mountain Array |
Easy |
|
2 years ago |
0941-valid-mountain-array.py |
942. DI String Match |
Easy |
|
3 weeks ago |
0942-di-string-match.py |
944. Delete Columns to Make Sorted |
Easy |
|
2 years ago |
0944-delete-columns-to-make-sorted.py |
945. Minimum Increment to Make Array Unique |
Medium |
|
2 months ago |
0945-minimum-increment-to-make-array-unique.py |
946. Validate Stack Sequences |
Medium |
|
2 years ago |
0946-validate-stack-sequences.py |
947. Most Stones Removed with Same Row or Column |
Medium |
|
2 years ago |
0947-most-stones-removed-with-same-row-or-column.py |
948. Bag of Tokens |
Medium |
|
2 years ago |
0948-bag-of-tokens.py |
950. Reveal Cards In Increasing Order |
Medium |
|
4 months ago |
0950-reveal-cards-in-increasing-order.py |
951. Flip Equivalent Binary Trees |
Medium |
|
last year |
0951-flip-equivalent-binary-trees.py |
953. Verifying an Alien Dictionary |
Easy |
|
last year |
0953-verifying-an-alien-dictionary.py |
954. Array of Doubled Pairs |
Medium |
|
|
|
957. Prison Cells After N Days |
Medium |
|
|
|
958. Check Completeness of a Binary Tree |
Medium |
|
last year |
0958-check-completeness-of-a-binary-tree.py |
959. Regions Cut By Slashes |
Medium |
|
2 days ago |
0959-regions-cut-by-slashes.py |
966. Vowel Spellchecker |
Medium |
|
|
|
967. Numbers With Same Consecutive Differences |
Medium |
|
2 years ago |
0967-numbers-with-same-consecutive-differences.py |
969. Pancake Sorting |
Medium |
|
|
|
970. Powerful Integers |
Medium |
|
|
|
973. K Closest Points to Origin |
Medium |
|
|
|
974. Subarray Sums Divisible by K |
Medium |
|
last year |
0974-subarray-sums-divisible-by-k.py |
976. Largest Perimeter Triangle |
Easy |
|
2 years ago |
0976-largest-perimeter-triangle.py |
977. Squares of a Sorted Array |
Easy |
|
4 months ago |
0977-squares-of-a-sorted-array.py |
978. Longest Turbulent Subarray |
Medium |
|
|
|
980. Unique Paths III |
Hard |
|
2 years ago |
0980-unique-paths-iii.py |
981. Time Based Key-Value Store |
Medium |
|
|
|
983. Minimum Cost For Tickets |
Medium |
|
last year |
0983-minimum-cost-for-tickets.py |
985. Sum of Even Numbers After Queries |
Medium |
|
2 years ago |
0985-sum-of-even-numbers-after-queries.py |
986. Interval List Intersections |
Medium |
|
2 years ago |
0986-interval-list-intersections.py |
987. Vertical Order Traversal of a Binary Tree |
Hard |
|
2 years ago |
0987-vertical-order-traversal-of-a-binary-tree.py |
988. Smallest String Starting From Leaf |
Medium |
|
4 months ago |
0988-smallest-string-starting-from-leaf.py |
989. Add to Array-Form of Integer |
Easy |
|
|
|
991. Broken Calculator |
Medium |
|
2 years ago |
0991-broken-calculator.py |
992. Subarrays with K Different Integers |
Hard |
|
5 months ago |
0992-subarrays-with-k-different-integers.py |
993. Cousins in Binary Tree |
Easy |
|
|
|
994. Rotting Oranges |
Medium |
|
|
|
997. Find the Town Judge |
Easy |
|
last year |
0997-find-the-town-judge.py |
1002. Find Common Characters |
Easy |
|
2 months ago |
1002-find-common-characters.py |
1003. Check If Word Is Valid After Substitutions |
Medium |
|
|
|
1004. Max Consecutive Ones III |
Medium |
|
|
|
1007. Minimum Domino Rotations For Equal Row |
Medium |
|
2 years ago |
1007-minimum-domino-rotations-for-equal-row.py |
1008. Construct Binary Search Tree from Preorder Traversal |
Medium |
|
|
|
1009. Complement of Base 10 Integer |
Easy |
|
3 years ago |
1009-complement-of-base-10-integer.py |
1010. Pairs of Songs With Total Durations Divisible by 60 |
Medium |
|
|
|
1011. Capacity To Ship Packages Within D Days |
Medium |
|
2 years ago |
1011-capacity-to-ship-packages-within-d-days.py |
1015. Smallest Integer Divisible by K |
Medium |
|
|
|
1020. Number of Enclaves |
Medium |
|
last year |
1020-number-of-enclaves.py |
1022. Sum of Root To Leaf Binary Numbers |
Easy |
|
3 years ago |
1022-sum-of-root-to-leaf-binary-numbers.py |
1026. Maximum Difference Between Node and Ancestor |
Medium |
|
7 months ago |
1026-maximum-difference-between-node-and-ancestor.py |
1029. Two City Scheduling |
Medium |
|
2 years ago |
1029-two-city-scheduling.py |
1032. Stream of Characters |
Hard |
|
|
|
1034. Coloring A Border |
Medium |
|
|
|
1035. Uncrossed Lines |
Medium |
|
last year |
1035-uncrossed-lines.py |
1038. Binary Search Tree to Greater Sum Tree |
Medium |
|
2 months ago |
1038-binary-search-tree-to-greater-sum-tree.py |
1041. Robot Bounded In Circle |
Medium |
|
|
|
1043. Partition Array for Maximum Sum |
Medium |
|
6 months ago |
1043-partition-array-for-maximum-sum.py |
1046. Last Stone Weight |
Easy |
|
2 years ago |
1046-last-stone-weight.py |
1047. Remove All Adjacent Duplicates In String |
Easy |
|
2 years ago |
1047-remove-all-adjacent-duplicates-in-string.py |
1048. Longest String Chain |
Medium |
|
2 years ago |
1048-longest-string-chain.py |
1051. Height Checker |
Easy |
|
2 months ago |
1051-height-checker.py |
1052. Grumpy Bookstore Owner |
Medium |
|
2 months ago |
1052-grumpy-bookstore-owner.py |
1055. Shortest Way to Form String |
Medium |
Premium |
last year |
1055-shortest-way-to-form-string.py |
1056. Confusing Number |
Easy |
Premium |
2 years ago |
1056-confusing-number.py |
1057. Campus Bikes |
Medium |
Premium |
2 years ago |
1057-campus-bikes.py |
1059. All Paths from Source Lead to Destination |
Medium |
Premium |
|
|
1061. Lexicographically Smallest Equivalent String |
Medium |
Premium |
last year |
1061-lexicographically-smallest-equivalent-string.py |
1062. Longest Repeating Substring |
Medium |
Premium |
2 weeks ago |
1062-longest-repeating-substring.py |
1064. Fixed Point |
Easy |
Premium |
2 years ago |
1064-fixed-point.py |
1065. Index Pairs of a String |
Easy |
Premium |
last year |
1065-index-pairs-of-a-string.py |
1066. Campus Bikes II |
Medium |
Premium |
2 years ago |
1066-campus-bikes-ii.py |
1071. Greatest Common Divisor of Strings |
Easy |
|
last year |
1071-greatest-common-divisor-of-strings.py |
1086. High Five |
Easy |
Premium |
|
|
1087. Brace Expansion |
Medium |
Premium |
2 years ago |
1087-brace-expansion.py |
1088. Confusing Number II |
Hard |
Premium |
last year |
1088-confusing-number-ii.py |
1091. Shortest Path in Binary Matrix |
Medium |
|
last year |
1091-shortest-path-in-binary-matrix.py |
1094. Car Pooling |
Medium |
|
3 years ago |
1094-car-pooling.py |
1099. Two Sum Less Than K |
Easy |
Premium |
9 months ago |
1099-two-sum-less-than-k.py |
1100. Find K-Length Substrings With No Repeated Characters |
Medium |
Premium |
2 years ago |
1100-find-k-length-substrings-with-no-repeated-characters.py |
1101. The Earliest Moment When Everyone Become Friends |
Medium |
Premium |
2 years ago |
1101-the-earliest-moment-when-everyone-become-friends.py |
1102. Path With Maximum Minimum Value |
Medium |
Premium |
2 years ago |
1102-path-with-maximum-minimum-value.py |
1103. Distribute Candies to People |
Easy |
|
|
|
1105. Filling Bookcase Shelves |
Medium |
|
2 weeks ago |
1105-filling-bookcase-shelves.py |
1108. Defanging an IP Address |
Easy |
|
|
|
1119. Remove Vowels from a String |
Easy |
Premium |
5 months ago |
1119-remove-vowels-from-a-string.py |
1120. Maximum Average Subtree |
Medium |
Premium |
8 months ago |
1120-maximum-average-subtree.py |
1122. Relative Sort Array |
Easy |
|
2 months ago |
1122-relative-sort-array.py |
1123. Lowest Common Ancestor of Deepest Leaves |
Medium |
|
|
|
1133. Largest Unique Number |
Easy |
Premium |
2 weeks ago |
1133-largest-unique-number.py |
1134. Armstrong Number |
Easy |
Premium |
|
|
1136. Parallel Courses |
Medium |
Premium |
2 years ago |
1136-parallel-courses.py |
1137. N-th Tribonacci Number |
Easy |
|
last year |
1137-n-th-tribonacci-number.py |
1143. Longest Common Subsequence |
Medium |
|
last year |
1143-longest-common-subsequence.py |
1150. Check If a Number Is Majority Element in a Sorted Array |
Easy |
Premium |
last year |
1150-check-if-a-number-is-majority-element-in-a-sorted-array.py |
1151. Minimum Swaps to Group All 1's Together |
Medium |
Premium |
2 years ago |
1151-minimum-swaps-to-group-all-1s-together.py |
1155. Number of Dice Rolls With Target Sum |
Medium |
|
8 months ago |
1155-number-of-dice-rolls-with-target-sum.py |
1160. Find Words That Can Be Formed by Characters |
Easy |
|
9 months ago |
1160-find-words-that-can-be-formed-by-characters.py |
1161. Maximum Level Sum of a Binary Tree |
Medium |
|
last year |
1161-maximum-level-sum-of-a-binary-tree.py |
1162. As Far from Land as Possible |
Medium |
|
last year |
1162-as-far-from-land-as-possible.py |
1165. Single-Row Keyboard |
Easy |
Premium |
2 years ago |
1165-single-row-keyboard.py |
1166. Design File System |
Medium |
Premium |
2 years ago |
1166-design-file-system.py |
1167. Minimum Cost to Connect Sticks |
Medium |
Premium |
2 years ago |
1167-minimum-cost-to-connect-sticks.py |
1169. Invalid Transactions |
Medium |
|
|
|
1171. Remove Zero Sum Consecutive Nodes from Linked List |
Medium |
|
5 months ago |
1171-remove-zero-sum-consecutive-nodes-from-linked-list.py |
1182. Shortest Distance to Target Color |
Medium |
Premium |
2 years ago |
1182-shortest-distance-to-target-color.py |
1189. Maximum Number of Balloons |
Easy |
|
|
|
1190. Reverse Substrings Between Each Pair of Parentheses |
Medium |
|
last month |
1190-reverse-substrings-between-each-pair-of-parentheses.py |
1197. Minimum Knight Moves |
Medium |
Premium |
10 months ago |
1197-minimum-knight-moves.py |
1198. Find Smallest Common Element in All Rows |
Medium |
Premium |
|
|
1200. Minimum Absolute Difference |
Easy |
|
10 months ago |
1200-minimum-absolute-difference.py |
1207. Unique Number of Occurrences |
Easy |
|
2 years ago |
1207-unique-number-of-occurrences.py |
1208. Get Equal Substrings Within Budget |
Medium |
|
3 months ago |
1208-get-equal-substrings-within-budget.py |
1209. Remove All Adjacent Duplicates in String II |
Medium |
|
2 years ago |
1209-remove-all-adjacent-duplicates-in-string-ii.py |
1213. Intersection of Three Sorted Arrays |
Easy |
Premium |
3 years ago |
1213-intersection-of-three-sorted-arrays.py |
1214. Two Sum BSTs |
Medium |
Premium |
last year |
1214-two-sum-bsts.py |
1216. Valid Palindrome III |
Hard |
Premium |
8 months ago |
1216-valid-palindrome-iii.py |
1217. Minimum Cost to Move Chips to The Same Position |
Easy |
|
3 months ago |
1217-minimum-cost-to-move-chips-to-the-same-position.py |
1218. Longest Arithmetic Subsequence of Given Difference |
Medium |
|
last year |
1218-longest-arithmetic-subsequence-of-given-difference.py |
1219. Path with Maximum Gold |
Medium |
|
3 months ago |
1219-path-with-maximum-gold.py |
1220. Count Vowels Permutation |
Hard |
|
10 months ago |
1220-count-vowels-permutation.py |
1229. Meeting Scheduler |
Medium |
Premium |
2 years ago |
1229-meeting-scheduler.py |
1230. Toss Strange Coins |
Medium |
Premium |
2 weeks ago |
1230-toss-strange-coins.py |
1232. Check If It Is a Straight Line |
Easy |
|
2 years ago |
1232-check-if-it-is-a-straight-line.py |
1236. Web Crawler |
Medium |
Premium |
last year |
1236-web-crawler.py |
1239. Maximum Length of a Concatenated String with Unique Characters |
Medium |
|
2 years ago |
1239-maximum-length-of-a-concatenated-string-with-unique-characters.py |
1242. Web Crawler Multithreaded |
Medium |
Premium |
|
|
1245. Tree Diameter |
Medium |
Premium |
6 months ago |
1245-tree-diameter.py |
1248. Count Number of Nice Subarrays |
Medium |
|
2 months ago |
1248-count-number-of-nice-subarrays.py |
1249. Minimum Remove to Make Valid Parentheses |
Medium |
|
3 years ago |
1249-minimum-remove-to-make-valid-parentheses.py |
1254. Number of Closed Islands |
Medium |
|
last year |
1254-number-of-closed-islands.py |
1260. Shift 2D Grid |
Easy |
|
2 years ago |
1260-shift-2d-grid.py |
1266. Minimum Time Visiting All Points |
Easy |
|
9 months ago |
1266-minimum-time-visiting-all-points.py |
1268. Search Suggestions System |
Medium |
|
2 years ago |
1268-search-suggestions-system.py |
1269. Number of Ways to Stay in the Same Place After Some Steps |
Hard |
|
10 months ago |
1269-number-of-ways-to-stay-in-the-same-place-after-some-steps.py |
1272. Remove Interval |
Medium |
Premium |
2 years ago |
1272-remove-interval.py |
1274. Number of Ships in a Rectangle |
Hard |
Premium |
2 years ago |
1274-number-of-ships-in-a-rectangle.py |
1275. Find Winner on a Tic Tac Toe Game |
Easy |
|
|
|
1277. Count Square Submatrices with All Ones |
Medium |
|
|
|
1279. Traffic Light Controlled Intersection |
Easy |
Premium |
|
|
1282. Group the People Given the Group Size They Belong To |
Medium |
|
last year |
1282-group-the-people-given-the-group-size-they-belong-to.py |
1283. Find the Smallest Divisor Given a Threshold |
Medium |
|
|
|
1287. Element Appearing More Than 25% In Sorted Array |
Easy |
|
8 months ago |
1287-element-appearing-more-than-25%-in-sorted-array.py |
1288. Remove Covered Intervals |
Medium |
|
2 years ago |
1288-remove-covered-intervals.py |
1289. Minimum Falling Path Sum II |
Hard |
|
4 months ago |
1289-minimum-falling-path-sum-ii.py |
1290. Convert Binary Number in a Linked List to Integer |
Easy |
|
|
|
1291. Sequential Digits |
Medium |
|
2 years ago |
1291-sequential-digits.py |
1293. Shortest Path in a Grid with Obstacles Elimination |
Hard |
|
2 years ago |
1293-shortest-path-in-a-grid-with-obstacles-elimination.py |
1302. Deepest Leaves Sum |
Medium |
|
2 years ago |
1302-deepest-leaves-sum.py |
1304. Find N Unique Integers Sum up to Zero |
Easy |
|
|
|
1305. All Elements in Two Binary Search Trees |
Medium |
|
2 years ago |
1305-all-elements-in-two-binary-search-trees.py |
1306. Jump Game III |
Medium |
|
|
|
1318. Minimum Flips to Make a OR b Equal to c |
Medium |
|
last year |
1318-minimum-flips-to-make-a-or-b-equal-to-c.py |
1319. Number of Operations to Make Network Connected |
Medium |
|
last year |
1319-number-of-operations-to-make-network-connected.py |
1325. Delete Leaves With a Given Value |
Medium |
|
3 months ago |
1325-delete-leaves-with-a-given-value.py |
1328. Break a Palindrome |
Medium |
|
|
|
1329. Sort the Matrix Diagonally |
Medium |
|
|
|
1332. Remove Palindromic Subsequences |
Easy |
|
2 years ago |
1332-remove-palindromic-subsequences.py |
1335. Minimum Difficulty of a Job Schedule |
Hard |
|
8 months ago |
1335-minimum-difficulty-of-a-job-schedule.py |
1337. The K Weakest Rows in a Matrix |
Easy |
|
last year |
1337-the-k-weakest-rows-in-a-matrix.py |
1338. Reduce Array Size to The Half |
Medium |
|
2 years ago |
1338-reduce-array-size-to-the-half.py |
1339. Maximum Product of Splitted Binary Tree |
Medium |
|
2 years ago |
1339-maximum-product-of-splitted-binary-tree.py |
1342. Number of Steps to Reduce a Number to Zero |
Easy |
|
2 years ago |
1342-number-of-steps-to-reduce-a-number-to-zero.py |
1344. Angle Between Hands of a Clock |
Medium |
|
|
|
1347. Minimum Number of Steps to Make Two Strings Anagram |
Medium |
|
last year |
1347-minimum-number-of-steps-to-make-two-strings-anagram.py |
1348. Tweet Counts Per Frequency |
Medium |
|
|
|
1351. Count Negative Numbers in a Sorted Matrix |
Easy |
|
last year |
1351-count-negative-numbers-in-a-sorted-matrix.py |
1356. Sort Integers by The Number of 1 Bits |
Easy |
|
10 months ago |
1356-sort-integers-by-the-number-of-1-bits.py |
1359. Count All Valid Pickup and Delivery Options |
Hard |
|
last year |
1359-count-all-valid-pickup-and-delivery-options.py |
1372. Longest ZigZag Path in a Binary Tree |
Medium |
|
last year |
1372-longest-zigzag-path-in-a-binary-tree.py |
1376. Time Needed to Inform All Employees |
Medium |
|
last year |
1376-time-needed-to-inform-all-employees.py |
1379. Find a Corresponding Node of a Binary Tree in a Clone of That Tree |
Easy |
|
2 years ago |
1379-find-a-corresponding-node-of-a-binary-tree-in-a-clone-of-that-tree.py |
1380. Lucky Numbers in a Matrix |
Easy |
|
last month |
1380-lucky-numbers-in-a-matrix.py |
1381. Design a Stack With Increment Operation |
Medium |
|
|
|
1382. Balance a Binary Search Tree |
Medium |
|
2 months ago |
1382-balance-a-binary-search-tree.py |
1396. Design Underground System |
Medium |
|
last year |
1396-design-underground-system.py |
1402. Reducing Dishes |
Hard |
|
last year |
1402-reducing-dishes.py |
1404. Number of Steps to Reduce a Number in Binary Representation to One |
Medium |
|
3 months ago |
1404-number-of-steps-to-reduce-a-number-in-binary-representation-to-one.py |
1413. Minimum Value to Get Positive Step by Step Sum |
Easy |
|
|
|
1422. Maximum Score After Splitting a String |
Easy |
|
8 months ago |
1422-maximum-score-after-splitting-a-string.py |
1423. Maximum Points You Can Obtain from Cards |
Medium |
|
2 years ago |
1423-maximum-points-you-can-obtain-from-cards.py |
1424. Diagonal Traverse II |
Medium |
|
9 months ago |
1424-diagonal-traverse-ii.py |
1426. Counting Elements |
Easy |
Premium |
|
|
1427. Perform String Shifts |
Easy |
Premium |
|
|
1428. Leftmost Column with at Least a One |
Medium |
Premium |
2 years ago |
1428-leftmost-column-with-at-least-a-one.py |
1429. First Unique Number |
Medium |
Premium |
|
|
1430. Check If a String Is a Valid Sequence from Root to Leaves Path in a Binary Tree |
Medium |
Premium |
|
|
1431. Kids With the Greatest Number of Candies |
Easy |
|
last year |
1431-kids-with-the-greatest-number-of-candies.py |
1436. Destination City |
Easy |
|
8 months ago |
1436-destination-city.py |
1437. Check If All 1's Are at Least Length K Places Away |
Easy |
|
|
|
1438. Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit |
Medium |
|
2 months ago |
1438-longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit.py |
1439. Find the Kth Smallest Sum of a Matrix With Sorted Rows |
Hard |
|
|
|
1441. Build an Array With Stack Operations |
Medium |
|
10 months ago |
1441-build-an-array-with-stack-operations.py |
1442. Count Triplets That Can Form Two Arrays of Equal XOR |
Medium |
|
3 months ago |
1442-count-triplets-that-can-form-two-arrays-of-equal-xor.py |
1446. Consecutive Characters |
Easy |
|
|
|
1448. Count Good Nodes in Binary Tree |
Medium |
|
2 years ago |
1448-count-good-nodes-in-binary-tree.py |
1450. Number of Students Doing Homework at a Given Time |
Easy |
|
|
|
1451. Rearrange Words in a Sentence |
Medium |
|
|
|
1452. People Whose List of Favorite Companies Is Not a Subset of Another List |
Medium |
|
|
|
1455. Check If a Word Occurs As a Prefix of Any Word in a Sentence |
Easy |
|
|
|
1456. Maximum Number of Vowels in a Substring of Given Length |
Medium |
|
last year |
1456-maximum-number-of-vowels-in-a-substring-of-given-length.py |
1457. Pseudo-Palindromic Paths in a Binary Tree |
Medium |
|
2 years ago |
1457-pseudo-palindromic-paths-in-a-binary-tree.py |
1460. Make Two Arrays Equal by Reversing Subarrays |
Easy |
|
last week |
1460-make-two-arrays-equal-by-reversing-subarrays.py |
1461. Check If a String Contains All Binary Codes of Size K |
Medium |
|
2 years ago |
1461-check-if-a-string-contains-all-binary-codes-of-size-k.py |
1464. Maximum Product of Two Elements in an Array |
Easy |
|
8 months ago |
1464-maximum-product-of-two-elements-in-an-array.py |
1465. Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts |
Medium |
|
2 years ago |
1465-maximum-area-of-a-piece-of-cake-after-horizontal-and-vertical-cuts.py |
1466. Reorder Routes to Make All Paths Lead to the City Zero |
Medium |
|
last year |
1466-reorder-routes-to-make-all-paths-lead-to-the-city-zero.py |
1469. Find All The Lonely Nodes |
Easy |
Premium |
4 months ago |
1469-find-all-the-lonely-nodes.py |
1470. Shuffle the Array |
Easy |
|
last year |
1470-shuffle-the-array.py |
1471. The k Strongest Values in an Array |
Medium |
|
|
|
1472. Design Browser History |
Medium |
|
|
|
1480. Running Sum of 1d Array |
Easy |
|
2 years ago |
1480-running-sum-of-1d-array.py |
1481. Least Number of Unique Integers after K Removals |
Medium |
|
6 months ago |
1481-least-number-of-unique-integers-after-k-removals.py |
1482. Minimum Number of Days to Make m Bouquets |
Medium |
|
2 months ago |
1482-minimum-number-of-days-to-make-m-bouquets.py |
1485. Clone Binary Tree With Random Pointer |
Medium |
Premium |
2 years ago |
1485-clone-binary-tree-with-random-pointer.py |
1486. XOR Operation in an Array |
Easy |
|
|
|
1490. Clone N-ary Tree |
Medium |
Premium |
2 years ago |
1490-clone-n-ary-tree.py |
1491. Average Salary Excluding the Minimum and Maximum Salary |
Easy |
|
2 years ago |
1491-average-salary-excluding-the-minimum-and-maximum-salary.py |
1492. The kth Factor of n |
Medium |
|
|
|
1493. Longest Subarray of 1's After Deleting One Element |
Medium |
|
last year |
1493-longest-subarray-of-1s-after-deleting-one-element.py |
1496. Path Crossing |
Easy |
|
8 months ago |
1496-path-crossing.py |
1497. Check If Array Pairs Are Divisible by k |
Medium |
|
|
|
1502. Can Make Arithmetic Progression From Sequence |
Easy |
|
last year |
1502-can-make-arithmetic-progression-from-sequence.py |
1503. Last Moment Before All Ants Fall Out of a Plank |
Medium |
|
10 months ago |
1503-last-moment-before-all-ants-fall-out-of-a-plank.py |
1506. Find Root of N-Ary Tree |
Medium |
Premium |
|
|
1512. Number of Good Pairs |
Easy |
|
last year |
1512-number-of-good-pairs.py |
1513. Number of Substrings With Only 1s |
Medium |
|
|
|
1518. Water Bottles |
Easy |
|
last month |
1518-water-bottles.py |
1519. Number of Nodes in the Sub-Tree With the Same Label |
Medium |
|
last year |
1519-number-of-nodes-in-the-sub-tree-with-the-same-label.py |
1522. Diameter of N-Ary Tree |
Medium |
Premium |
|
|
1523. Count Odd Numbers in an Interval Range |
Easy |
|
last year |
1523-count-odd-numbers-in-an-interval-range.py |
1528. Shuffle String |
Easy |
|
|
|
1529. Minimum Suffix Flips |
Medium |
|
|
|
1530. Number of Good Leaf Nodes Pairs |
Medium |
|
last month |
1530-number-of-good-leaf-nodes-pairs.py |
1531. String Compression II |
Hard |
|
8 months ago |
1531-string-compression-ii.py |
1533. Find the Index of the Large Integer |
Medium |
Premium |
last year |
1533-find-the-index-of-the-large-integer.py |
1535. Find the Winner of an Array Game |
Medium |
|
9 months ago |
1535-find-the-winner-of-an-array-game.py |
1538. Guess the Majority in a Hidden Array |
Medium |
Premium |
last year |
1538-guess-the-majority-in-a-hidden-array.py |
1539. Kth Missing Positive Number |
Easy |
|
|
|
1544. Make The String Great |
Easy |
|
4 months ago |
1544-make-the-string-great.py |
1550. Three Consecutive Odds |
Easy |
|
now |
1550-three-consecutive-odds.py |
1551. Minimum Operations to Make Array Equal |
Medium |
|
|
|
1552. Magnetic Force Between Two Balls |
Medium |
|
2 months ago |
1552-magnetic-force-between-two-balls.py |
1553. Minimum Number of Days to Eat N Oranges |
Hard |
|
|
|
1557. Minimum Number of Vertices to Reach All Nodes |
Medium |
|
last year |
1557-minimum-number-of-vertices-to-reach-all-nodes.py |
1561. Maximum Number of Coins You Can Get |
Medium |
|
9 months ago |
1561-maximum-number-of-coins-you-can-get.py |
1564. Put Boxes Into the Warehouse I |
Medium |
Premium |
2 years ago |
1564-put-boxes-into-the-warehouse-i.py |
1566. Detect Pattern of Length M Repeated K or More Times |
Easy |
|
|
|
1567. Maximum Length of Subarray With Positive Product |
Medium |
|
|
|
1570. Dot Product of Two Sparse Vectors |
Medium |
Premium |
2 years ago |
1570-dot-product-of-two-sparse-vectors.py |
1572. Matrix Diagonal Sum |
Easy |
|
last year |
1572-matrix-diagonal-sum.py |
1578. Minimum Time to Make Rope Colorful |
Medium |
|
8 months ago |
1578-minimum-time-to-make-rope-colorful.py |
1580. Put Boxes Into the Warehouse II |
Medium |
Premium |
2 months ago |
1580-put-boxes-into-the-warehouse-ii.py |
1582. Special Positions in a Binary Matrix |
Easy |
|
8 months ago |
1582-special-positions-in-a-binary-matrix.py |
1584. Min Cost to Connect All Points |
Medium |
|
last year |
1584-min-cost-to-connect-all-points.py |
1586. Binary Search Tree Iterator II |
Medium |
Premium |
2 years ago |
1586-binary-search-tree-iterator-ii.py |
1598. Crawler Log Folder |
Easy |
|
last month |
1598-crawler-log-folder.py |
1602. Find Nearest Right Node in Binary Tree |
Medium |
Premium |
2 years ago |
1602-find-nearest-right-node-in-binary-tree.py |
1603. Design Parking System |
Easy |
|
last year |
1603-design-parking-system.py |
1609. Even Odd Tree |
Medium |
|
6 months ago |
1609-even-odd-tree.py |
1611. Minimum One Bit Operations to Make Integers Zero |
Hard |
|
9 months ago |
1611-minimum-one-bit-operations-to-make-integers-zero.py |
1615. Maximal Network Rank |
Medium |
|
last year |
1615-maximal-network-rank.py |
1624. Largest Substring Between Two Equal Characters |
Easy |
|
8 months ago |
1624-largest-substring-between-two-equal-characters.py |
1629. Slowest Key |
Easy |
|
|
|
1630. Arithmetic Subarrays |
Medium |
|
9 months ago |
1630-arithmetic-subarrays.py |
1631. Path With Minimum Effort |
Medium |
|
last year |
1631-path-with-minimum-effort.py |
1636. Sort Array by Increasing Frequency |
Easy |
|
3 weeks ago |
1636-sort-array-by-increasing-frequency.py |
1637. Widest Vertical Area Between Two Points Containing No Points |
Medium |
|
8 months ago |
1637-widest-vertical-area-between-two-points-containing-no-points.py |
1641. Count Sorted Vowel Strings |
Medium |
|
|
|
1642. Furthest Building You Can Reach |
Medium |
|
2 years ago |
1642-furthest-building-you-can-reach.py |
1644. Lowest Common Ancestor of a Binary Tree II |
Medium |
Premium |
last year |
1644-lowest-common-ancestor-of-a-binary-tree-ii.py |
1646. Get Maximum in Generated Array |
Easy |
|
|
|
1647. Minimum Deletions to Make Character Frequencies Unique |
Medium |
|
2 years ago |
1647-minimum-deletions-to-make-character-frequencies-unique.py |
1650. Lowest Common Ancestor of a Binary Tree III |
Medium |
Premium |
|
|
1653. Minimum Deletions to Make String Balanced |
Medium |
|
2 weeks ago |
1653-minimum-deletions-to-make-string-balanced.py |
1657. Determine if Two Strings Are Close |
Medium |
|
2 years ago |
1657-determine-if-two-strings-are-close.py |
1658. Minimum Operations to Reduce X to Zero |
Medium |
|
2 years ago |
1658-minimum-operations-to-reduce-x-to-zero.py |
1660. Correct a Binary Tree |
Medium |
Premium |
|
|
1662. Check If Two String Arrays are Equivalent |
Easy |
|
2 years ago |
1662-check-if-two-string-arrays-are-equivalent.py |
1663. Smallest String With A Given Numeric Value |
Medium |
|
2 years ago |
1663-smallest-string-with-a-given-numeric-value.py |
1669. Merge In Between Linked Lists |
Medium |
|
5 months ago |
1669-merge-in-between-linked-lists.py |
1672. Richest Customer Wealth |
Easy |
|
2 years ago |
1672-richest-customer-wealth.py |
1673. Find the Most Competitive Subsequence |
Medium |
|
|
|
1675. Minimize Deviation in Array |
Hard |
|
2 years ago |
1675-minimize-deviation-in-array.py |
1679. Max Number of K-Sum Pairs |
Medium |
|
2 years ago |
1679-max-number-of-k-sum-pairs.py |
1680. Concatenation of Consecutive Binary Numbers |
Medium |
|
2 years ago |
1680-concatenation-of-consecutive-binary-numbers.py |
1685. Sum of Absolute Differences in a Sorted Array |
Medium |
|
9 months ago |
1685-sum-of-absolute-differences-in-a-sorted-array.py |
1688. Count of Matches in Tournament |
Easy |
|
9 months ago |
1688-count-of-matches-in-tournament.py |
1689. Partitioning Into Minimum Number Of Deci-Binary Numbers |
Medium |
|
2 years ago |
1689-partitioning-into-minimum-number-of-deci-binary-numbers.py |
1695. Maximum Erasure Value |
Medium |
|
2 years ago |
1695-maximum-erasure-value.py |
1700. Number of Students Unable to Eat Lunch |
Easy |
|
4 months ago |
1700-number-of-students-unable-to-eat-lunch.py |
1701. Average Waiting Time |
Medium |
|
last month |
1701-average-waiting-time.py |
1704. Determine if String Halves Are Alike |
Easy |
|
7 months ago |
1704-determine-if-string-halves-are-alike.py |
1706. Where Will the Ball Fall |
Medium |
|
2 years ago |
1706-where-will-the-ball-fall.py |
1710. Maximum Units on a Truck |
Easy |
|
2 years ago |
1710-maximum-units-on-a-truck.py |
1716. Calculate Money in Leetcode Bank |
Easy |
|
8 months ago |
1716-calculate-money-in-leetcode-bank.py |
1717. Maximum Score From Removing Substrings |
Medium |
|
last month |
1717-maximum-score-from-removing-substrings.py |
1721. Swapping Nodes in a Linked List |
Medium |
|
2 years ago |
1721-swapping-nodes-in-a-linked-list.py |
1727. Largest Submatrix With Rearrangements |
Medium |
|
9 months ago |
1727-largest-submatrix-with-rearrangements.py |
1730. Shortest Path to Get Food |
Medium |
Premium |
last year |
1730-shortest-path-to-get-food.py |
1740. Find Distance in a Binary Tree |
Medium |
Premium |
last month |
1740-find-distance-in-a-binary-tree.py |
1743. Restore the Array From Adjacent Pairs |
Medium |
|
9 months ago |
1743-restore-the-array-from-adjacent-pairs.py |
1750. Minimum Length of String After Deleting Similar Ends |
Medium |
|
5 months ago |
1750-minimum-length-of-string-after-deleting-similar-ends.py |
1752. Check if Array Is Sorted and Rotated |
Easy |
|
|
|
1753. Maximum Score From Removing Stones |
Medium |
|
|
|
1754. Largest Merge Of Two Strings |
Medium |
|
|
|
1758. Minimum Changes To Make Alternating Binary String |
Easy |
|
8 months ago |
1758-minimum-changes-to-make-alternating-binary-string.py |
1759. Count Number of Homogenous Substrings |
Medium |
|
9 months ago |
1759-count-number-of-homogenous-substrings.py |
1762. Buildings With an Ocean View |
Medium |
Premium |
2 years ago |
1762-buildings-with-an-ocean-view.py |
1768. Merge Strings Alternately |
Easy |
|
last year |
1768-merge-strings-alternately.py |
1769. Minimum Number of Operations to Move All Balls to Each Box |
Medium |
|
|
|
1773. Count Items Matching a Rule |
Easy |
|
|
|
1774. Closest Dessert Cost |
Medium |
|
|
|
1775. Equal Sum Arrays With Minimum Number of Operations |
Medium |
|
|
|
1779. Find Nearest Point That Has the Same X or Y Coordinate |
Easy |
|
last year |
1779-find-nearest-point-that-has-the-same-x-or-y-coordinate.py |
1790. Check if One String Swap Can Make Strings Equal |
Easy |
|
last year |
1790-check-if-one-string-swap-can-make-strings-equal.py |
1791. Find Center of Star Graph |
Easy |
|
2 months ago |
1791-find-center-of-star-graph.py |
1804. Implement Trie II (Prefix Tree) |
Medium |
Premium |
last year |
1804-implement-trie-ii-prefix-tree.py |
1814. Count Nice Pairs in an Array |
Medium |
|
9 months ago |
1814-count-nice-pairs-in-an-array.py |
1822. Sign of the Product of an Array |
Easy |
|
last year |
1822-sign-of-the-product-of-an-array.py |
1823. Find the Winner of the Circular Game |
Medium |
|
last month |
1823-find-the-winner-of-the-circular-game.py |
1832. Check if the Sentence Is Pangram |
Easy |
|
2 years ago |
1832-check-if-the-sentence-is-pangram.py |
1833. Maximum Ice Cream Bars |
Medium |
|
2 years ago |
1833-maximum-ice-cream-bars.py |
1834. Single-Threaded CPU |
Medium |
|
2 years ago |
1834-single-threaded-cpu.py |
1836. Remove Duplicates From an Unsorted Linked List |
Medium |
Premium |
last month |
1836-remove-duplicates-from-an-unsorted-linked-list.py |
1838. Frequency of the Most Frequent Element |
Medium |
|
9 months ago |
1838-frequency-of-the-most-frequent-element.py |
1844. Replace All Digits with Characters |
Easy |
|
6 months ago |
1844-replace-all-digits-with-characters.py |
1845. Seat Reservation Manager |
Medium |
|
9 months ago |
1845-seat-reservation-manager.py |
1846. Maximum Element After Decreasing and Rearranging |
Medium |
|
9 months ago |
1846-maximum-element-after-decreasing-and-rearranging.py |
1854. Maximum Population Year |
Easy |
|
last year |
1854-maximum-population-year.py |
1870. Minimum Speed to Arrive on Time |
Medium |
|
last year |
1870-minimum-speed-to-arrive-on-time.py |
1874. Minimize Product Sum of Two Arrays |
Medium |
Premium |
2 years ago |
1874-minimize-product-sum-of-two-arrays.py |
1877. Minimize Maximum Pair Sum in Array |
Medium |
|
9 months ago |
1877-minimize-maximum-pair-sum-in-array.py |
1885. Count Pairs in Two Arrays |
Medium |
Premium |
3 months ago |
1885-count-pairs-in-two-arrays.py |
1887. Reduction Operations to Make the Array Elements Equal |
Medium |
|
9 months ago |
1887-reduction-operations-to-make-the-array-elements-equal.py |
1897. Redistribute Characters to Make All Strings Equal |
Easy |
|
8 months ago |
1897-redistribute-characters-to-make-all-strings-equal.py |
1903. Largest Odd Number in String |
Easy |
|
8 months ago |
1903-largest-odd-number-in-string.py |
1913. Maximum Product Difference Between Two Pairs |
Easy |
|
8 months ago |
1913-maximum-product-difference-between-two-pairs.py |
1914. Cyclically Rotating a Grid |
Medium |
|
|
|
1920. Build Array from Permutation |
Easy |
|
|
|
1921. Eliminate Maximum Number of Monsters |
Medium |
|
9 months ago |
1921-eliminate-maximum-number-of-monsters.py |
1922. Count Good Numbers |
Medium |
|
|
|
1926. Nearest Exit from Entrance in Maze |
Medium |
|
2 years ago |
1926-nearest-exit-from-entrance-in-maze.py |
1930. Unique Length-3 Palindromic Subsequences |
Medium |
|
9 months ago |
1930-unique-length-3-palindromic-subsequences.py |
1935. Maximum Number of Words You Can Type |
Easy |
|
|
|
1936. Add Minimum Number of Rungs |
Medium |
|
|
|
1940. Longest Common Subsequence Between Sorted Arrays |
Medium |
Premium |
3 months ago |
1940-longest-common-subsequence-between-sorted-arrays.py |
1945. Sum of Digits of String After Convert |
Easy |
|
|
|
1946. Largest Number After Mutating Substring |
Medium |
|
|
|
1947. Maximum Compatibility Score Sum |
Medium |
|
|
|
1961. Check If String Is a Prefix of Array |
Easy |
|
|
|
1962. Remove Stones to Minimize the Total |
Medium |
|
2 years ago |
1962-remove-stones-to-minimize-the-total.py |
1963. Minimum Number of Swaps to Make the String Balanced |
Medium |
|
|
|
1964. Find the Longest Valid Obstacle Course at Each Position |
Hard |
|
|
|
1967. Number of Strings That Appear as Substrings in Word |
Easy |
|
|
|
1968. Array With Elements Not Equal to Average of Neighbors |
Medium |
|
|
|
1969. Minimum Non-Zero Product of the Array Elements |
Medium |
|
|
|
1971. Find if Path Exists in Graph |
Easy |
|
2 years ago |
1971-find-if-path-exists-in-graph.py |
1973. Count Nodes Equal to Sum of Descendants |
Medium |
Premium |
6 months ago |
1973-count-nodes-equal-to-sum-of-descendants.py |
1980. Find Unique Binary String |
Medium |
|
9 months ago |
1980-find-unique-binary-string.py |
1992. Find All Groups of Farmland |
Medium |
|
4 months ago |
1992-find-all-groups-of-farmland.py |
1996. The Number of Weak Characters in the Game |
Medium |
|
2 years ago |
1996-the-number-of-weak-characters-in-the-game.py |
2000. Reverse Prefix of Word |
Easy |
|
4 months ago |
2000-reverse-prefix-of-word.py |
2007. Find Original Array From Doubled Array |
Medium |
|
2 years ago |
2007-find-original-array-from-doubled-array.py |
2024. Maximize the Confusion of an Exam |
Medium |
|
last year |
2024-maximize-the-confusion-of-an-exam.py |
2037. Minimum Number of Moves to Seat Everyone |
Easy |
|
2 months ago |
2037-minimum-number-of-moves-to-seat-everyone.py |
2038. Remove Colored Pieces if Both Neighbors are the Same Color |
Medium |
|
last year |
2038-remove-colored-pieces-if-both-neighbors-are-the-same-color.py |
2053. Kth Distinct String in an Array |
Easy |
|
last week |
2053-kth-distinct-string-in-an-array.py |
2057. Smallest Index With Equal Value |
Easy |
|
|
|
2058. Find the Minimum and Maximum Number of Nodes Between Critical Points |
Medium |
|
last month |
2058-find-the-minimum-and-maximum-number-of-nodes-between-critical-points.py |
2059. Minimum Operations to Convert Number |
Medium |
|
|
|
2061. Number of Spaces Cleaning Robot Cleaned |
Medium |
Premium |
3 months ago |
2061-number-of-spaces-cleaning-robot-cleaned.py |
2073. Time Needed to Buy Tickets |
Easy |
|
4 months ago |
2073-time-needed-to-buy-tickets.py |
2078. Two Furthest Houses With Different Colors |
Easy |
|
|
|
2079. Watering Plants |
Medium |
|
|
|
2080. Range Frequency Queries |
Medium |
|
|
|
2083. Substrings That Begin and End With the Same Letter |
Medium |
Premium |
2 months ago |
2083-substrings-that-begin-and-end-with-the-same-letter.py |
2085. Count Common Words With One Occurrence |
Easy |
|
|
|
2090. K Radius Subarray Averages |
Medium |
|
last year |
2090-k-radius-subarray-averages.py |
2094. Finding 3-Digit Even Numbers |
Easy |
|
|
|
2095. Delete the Middle Node of a Linked List |
Medium |
|
2 years ago |
2095-delete-the-middle-node-of-a-linked-list.py |
2096. Step-By-Step Directions From a Binary Tree Node to Another |
Medium |
|
2 years ago |
2096-step-by-step-directions-from-a-binary-tree-node-to-another.py |
2101. Detonate the Maximum Bombs |
Medium |
|
last year |
2101-detonate-the-maximum-bombs.py |
2108. Find First Palindromic String in the Array |
Easy |
|
6 months ago |
2108-find-first-palindromic-string-in-the-array.py |
2125. Number of Laser Beams in a Bank |
Medium |
|
8 months ago |
2125-number-of-laser-beams-in-a-bank.py |
2130. Maximum Twin Sum of a Linked List |
Medium |
|
last year |
2130-maximum-twin-sum-of-a-linked-list.py |
2131. Longest Palindrome by Concatenating Two Letter Words |
Medium |
|
2 years ago |
2131-longest-palindrome-by-concatenating-two-letter-words.py |
2134. Minimum Swaps to Group All 1's Together II |
Medium |
|
2 weeks ago |
2134-minimum-swaps-to-group-all-1s-together-ii.py |
2140. Solving Questions With Brainpower |
Medium |
|
last year |
2140-solving-questions-with-brainpower.py |
2147. Number of Ways to Divide a Long Corridor |
Hard |
|
9 months ago |
2147-number-of-ways-to-divide-a-long-corridor.py |
2149. Rearrange Array Elements by Sign |
Medium |
|
6 months ago |
2149-rearrange-array-elements-by-sign.py |
2187. Minimum Time to Complete Trips |
Medium |
|
last year |
2187-minimum-time-to-complete-trips.py |
2191. Sort the Jumbled Numbers |
Medium |
|
3 weeks ago |
2191-sort-the-jumbled-numbers.py |
2192. All Ancestors of a Node in a Directed Acyclic Graph |
Medium |
|
2 months ago |
2192-all-ancestors-of-a-node-in-a-directed-acyclic-graph.py |
2200. Find All K-Distant Indices in an Array |
Easy |
|
|
|
2201. Count Artifacts That Can Be Extracted |
Medium |
|
|
|
2202. Maximize the Topmost Element After K Moves |
Medium |
|
|
|
2214. Minimum Health to Beat Game |
Medium |
Premium |
2 years ago |
2214-minimum-health-to-beat-game.py |
2215. Find the Difference of Two Arrays |
Easy |
|
last year |
2215-find-the-difference-of-two-arrays.py |
2224. Minimum Number of Operations to Convert Time |
Easy |
|
|
|
2225. Find Players With Zero or One Losses |
Medium |
|
2 years ago |
2225-find-players-with-zero-or-one-losses.py |
2226. Maximum Candies Allocated to K Children |
Medium |
|
|
|
2227. Encrypt and Decrypt Strings |
Hard |
|
2 years ago |
2227-encrypt-and-decrypt-strings.py |
2231. Largest Number After Digit Swaps by Parity |
Easy |
|
|
|
2232. Minimize Result by Adding Parentheses to Expression |
Medium |
|
|
|
2233. Maximum Product After K Increments |
Medium |
|
|
|
2243. Calculate Digit Sum of a String |
Easy |
|
|
|
2244. Minimum Rounds to Complete All Tasks |
Medium |
|
2 years ago |
2244-minimum-rounds-to-complete-all-tasks.py |
2245. Maximum Trailing Zeros in a Cornered Path |
Medium |
|
|
|
2246. Longest Path With Different Adjacent Characters |
Hard |
|
last year |
2246-longest-path-with-different-adjacent-characters.py |
2256. Minimum Average Difference |
Medium |
|
2 years ago |
2256-minimum-average-difference.py |
2264. Largest 3-Same-Digit Number in String |
Easy |
|
9 months ago |
2264-largest-3-same-digit-number-in-string.py |
2265. Count Nodes Equal to Average of Subtree |
Medium |
|
10 months ago |
2265-count-nodes-equal-to-average-of-subtree.py |
2269. Find the K-Beauty of a Number |
Easy |
|
|
|
2270. Number of Ways to Split Array |
Medium |
|
|
|
2271. Maximum White Tiles Covered by a Carpet |
Medium |
|
|
|
2273. Find Resultant Array After Removing Anagrams |
Easy |
|
|
|
2274. Maximum Consecutive Floors Without Special Floors |
Medium |
|
|
|
2275. Largest Combination With Bitwise AND Greater Than Zero |
Medium |
|
|
|
2279. Maximum Bags With Full Capacity of Rocks |
Medium |
|
2 years ago |
2279-maximum-bags-with-full-capacity-of-rocks.py |
2283. Check if Number Has Equal Digit Count and Digit Value |
Easy |
|
|
|
2284. Sender With Largest Word Count |
Medium |
|
|
|
2285. Maximum Total Importance of Roads |
Medium |
|
|
|
2287. Rearrange Characters to Make Target String |
Easy |
|
|
|
2288. Apply Discount to Prices |
Medium |
|
|
|
2293. Min Max Game |
Easy |
|
|
|
2294. Partition Array Such That Maximum Difference Is K |
Medium |
|
|
|
2295. Replace Elements in an Array |
Medium |
|
2 years ago |
2295-replace-elements-in-an-array.py |
2300. Successful Pairs of Spells and Potions |
Medium |
|
last year |
2300-successful-pairs-of-spells-and-potions.py |
2303. Calculate Amount Paid in Taxes |
Easy |
|
|
|
2304. Minimum Path Cost in a Grid |
Medium |
|
|
|
2305. Fair Distribution of Cookies |
Medium |
|
last year |
2305-fair-distribution-of-cookies.py |
2316. Count Unreachable Pairs of Nodes in an Undirected Graph |
Medium |
|
last year |
2316-count-unreachable-pairs-of-nodes-in-an-undirected-graph.py |
2331. Evaluate Boolean Binary Tree |
Easy |
|
3 months ago |
2331-evaluate-boolean-binary-tree.py |
2335. Minimum Amount of Time to Fill Cups |
Easy |
|
|
|
2336. Smallest Number in Infinite Set |
Medium |
|
last year |
2336-smallest-number-in-infinite-set.py |
2348. Number of Zero-Filled Subarrays |
Medium |
|
last year |
2348-number-of-zero-filled-subarrays.py |
2353. Design a Food Rating System |
Medium |
|
8 months ago |
2353-design-a-food-rating-system.py |
2357. Make Array Zero by Subtracting Equal Amounts |
Easy |
|
|
|
2358. Maximum Number of Groups Entering a Competition |
Medium |
|
|
|
2359. Find Closest Node to Given Two Nodes |
Medium |
|
|
|
2366. Minimum Replacements to Sort the Array |
Hard |
|
last year |
2366-minimum-replacements-to-sort-the-array.py |
2369. Check if There is a Valid Partition For The Array |
Medium |
|
last year |
2369-check-if-there-is-a-valid-partition-for-the-array.py |
2385. Amount of Time for Binary Tree to Be Infected |
Medium |
|
7 months ago |
2385-amount-of-time-for-binary-tree-to-be-infected.py |
2389. Longest Subsequence With Limited Sum |
Easy |
|
2 years ago |
2389-longest-subsequence-with-limited-sum.py |
2390. Removing Stars From a String |
Medium |
|
last year |
2390-removing-stars-from-a-string.py |
2391. Minimum Amount of Time to Collect Garbage |
Medium |
|
9 months ago |
2391-minimum-amount-of-time-to-collect-garbage.py |
2393. Count Strictly Increasing Subarrays |
Medium |
Premium |
last year |
2393-count-strictly-increasing-subarrays.py |
2404. Most Frequent Even Element |
Easy |
|
|
|
2405. Optimal Partition of String |
Medium |
|
last year |
2405-optimal-partition-of-string.py |
2406. Divide Intervals Into Minimum Number of Groups |
Medium |
|
|
|
2418. Sort the People |
Easy |
|
3 weeks ago |
2418-sort-the-people.py |
2419. Longest Subarray With Maximum Bitwise AND |
Medium |
|
|
|
2433. Find The Original Array of Prefix Xor |
Medium |
|
10 months ago |
2433-find-the-original-array-of-prefix-xor.py |
2437. Number of Valid Clock Times |
Easy |
|
10 months ago |
2437-number-of-valid-clock-times.py |
2439. Minimize Maximum of Array |
Medium |
|
last year |
2439-minimize-maximum-of-array.py |
2441. Largest Positive Integer That Exists With Its Negative |
Easy |
|
4 months ago |
2441-largest-positive-integer-that-exists-with-its-negative.py |
2446. Determine if Two Events Have Conflict |
Easy |
|
|
|
2455. Average Value of Even Numbers That Are Divisible by Three |
Easy |
|
|
|
2456. Most Popular Video Creator |
Medium |
|
|
|
2457. Minimum Addition to Make Integer Beautiful |
Medium |
|
|
|
2465. Number of Distinct Averages |
Easy |
|
|
|
2466. Count Ways To Build Good Strings |
Medium |
|
|
|
2469. Convert the Temperature |
Easy |
|
2 years ago |
2469-convert-the-temperature.py |
2470. Number of Subarrays With LCM Equal to K |
Medium |
|
2 years ago |
2470-number-of-subarrays-with-lcm-equal-to-k.py |
2471. Minimum Number of Operations to Sort a Binary Tree by Level |
Medium |
|
2 years ago |
2471-minimum-number-of-operations-to-sort-a-binary-tree-by-level.py |
2482. Difference Between Ones and Zeros in Row and Column |
Medium |
|
8 months ago |
2482-difference-between-ones-and-zeros-in-row-and-column.py |
2483. Minimum Penalty for a Shop |
Medium |
|
last year |
2483-minimum-penalty-for-a-shop.py |
2485. Find the Pivot Integer |
Easy |
|
5 months ago |
2485-find-the-pivot-integer.py |
2486. Append Characters to String to Make Subsequence |
Medium |
|
2 months ago |
2486-append-characters-to-string-to-make-subsequence.py |
2487. Remove Nodes From Linked List |
Medium |
|
3 months ago |
2487-remove-nodes-from-linked-list.py |
2490. Circular Sentence |
Easy |
|
|
|
2491. Divide Players Into Teams of Equal Skill |
Medium |
|
|
|
2492. Minimum Score of a Path Between Two Cities |
Medium |
|
last year |
2492-minimum-score-of-a-path-between-two-cities.py |
2498. Frog Jump II |
Medium |
|
last year |
2498-frog-jump-ii.py |
2505. Bitwise OR of All Subsequence Sums |
Medium |
Premium |
4 months ago |
2505-bitwise-or-of-all-subsequence-sums.py |
2511. Maximum Enemy Forts That Can Be Captured |
Easy |
|
|
|
2512. Reward Top K Students |
Medium |
|
|
|
2514. Count Anagrams |
Hard |
|
|
|
2515. Shortest Distance to Target String in a Circular Array |
Easy |
|
|
|
2517. Maximum Tastiness of Candy Basket |
Medium |
|
|
|
2529. Maximum Count of Positive Integer and Negative Integer |
Easy |
|
|
|
2530. Maximal Score After Applying K Operations |
Medium |
|
|
|
2531. Make Number of Distinct Characters Equal |
Medium |
|
|
|
2540. Minimum Common Value |
Easy |
|
5 months ago |
2540-minimum-common-value.py |
2541. Minimum Operations to Make Array Equal II |
Medium |
|
|
|
2542. Maximum Subsequence Score |
Medium |
|
last year |
2542-maximum-subsequence-score.py |
2544. Alternating Digit Sum |
Easy |
|
|
|
2545. Sort the Students by Their Kth Score |
Medium |
|
|
|
2546. Apply Bitwise Operations to Make Strings Equal |
Medium |
|
|
|
2549. Count Distinct Numbers on Board |
Easy |
|
|
|
2550. Count Collisions of Monkeys on a Polygon |
Medium |
|
|
|
2553. Separate the Digits in an Array |
Easy |
|
|
|
2554. Maximum Number of Integers to Choose From a Range I |
Medium |
|
|
|
2558. Take Gifts From the Richest Pile |
Easy |
|
|
|
2559. Count Vowel Strings in Ranges |
Medium |
|
|
|
2562. Find the Array Concatenation Value |
Easy |
|
|
|
2563. Count the Number of Fair Pairs |
Medium |
|
|
|
2564. Substring XOR Queries |
Medium |
|
|
|
2566. Maximum Difference by Remapping a Digit |
Easy |
|
|
|
2582. Pass the Pillow |
Easy |
|
last month |
2582-pass-the-pillow.py |
2586. Count the Number of Vowel Strings in Range |
Easy |
|
|
|
2587. Rearrange Array to Maximize Prefix Score |
Medium |
|
|
|
2588. Count the Number of Beautiful Subarrays |
Medium |
|
|
|
2591. Distribute Money to Maximum Children |
Easy |
|
|
|
2592. Maximize Greatness of an Array |
Medium |
|
|
|
2593. Find Score of an Array After Marking All Elements |
Medium |
|
|
|
2594. Minimum Time to Repair Cars |
Medium |
|
|
|
2595. Number of Even and Odd Bits |
Easy |
|
|
|
2596. Check Knight Tour Configuration |
Medium |
|
|
|
2597. The Number of Beautiful Subsets |
Medium |
|
3 months ago |
2597-the-number-of-beautiful-subsets.py |
2598. Smallest Missing Non-negative Integer After Operations |
Medium |
|
|
|
2609. Find the Longest Balanced Substring of a Binary String |
Easy |
|
|
|
2610. Convert an Array Into a 2D Array With Conditions |
Medium |
|
8 months ago |
2610-convert-an-array-into-a-2d-array-with-conditions.py |
2611. Mice and Cheese |
Medium |
|
|
|
2616. Minimize the Maximum Difference of Pairs |
Medium |
|
last year |
2616-minimize-the-maximum-difference-of-pairs.py |
2642. Design Graph With Shortest Path Calculator |
Hard |
|
9 months ago |
2642-design-graph-with-shortest-path-calculator.py |
2678. Number of Senior Citizens |
Easy |
|
2 weeks ago |
2678-number-of-senior-citizens.py |
2706. Buy Two Chocolates |
Easy |
|
8 months ago |
2706-buy-two-chocolates.py |
2707. Extra Characters in a String |
Medium |
|
last year |
2707-extra-characters-in-a-string.py |
2743. Count Substrings Without Repeating Character |
Medium |
Premium |
2 months ago |
2743-count-substrings-without-repeating-character.py |
2785. Sort Vowels in a String |
Medium |
|
9 months ago |
2785-sort-vowels-in-a-string.py |
2802. Find The K-th Lucky Number |
Medium |
Premium |
3 months ago |
2802-find-the-k-th-lucky-number.py |
2816. Double a Number Represented as a Linked List |
Medium |
|
3 months ago |
2816-double-a-number-represented-as-a-linked-list.py |
2848. Points That Intersect With Cars |
Easy |
|
|
|
2849. Determine if a Cell Is Reachable at a Given Time |
Medium |
|
9 months ago |
2849-determine-if-a-cell-is-reachable-at-a-given-time.py |
2864. Maximum Odd Binary Number |
Easy |
|
6 months ago |
2864-maximum-odd-binary-number.py |
2870. Minimum Number of Operations to Make Array Empty |
Medium |
|
8 months ago |
2870-minimum-number-of-operations-to-make-array-empty.py |
2958. Length of Longest Subarray With at Most K Frequency |
Medium |
|
5 months ago |
2958-length-of-longest-subarray-with-at-most-k-frequency.py |
2962. Count Subarrays Where Max Element Appears at Least K Times |
Medium |
|
5 months ago |
2962-count-subarrays-where-max-element-appears-at-least-k-times.py |
2966. Divide Array Into Arrays With Max Difference |
Medium |
|
7 months ago |
2966-divide-array-into-arrays-with-max-difference.py |
2971. Find Polygon With the Largest Perimeter |
Medium |
|
6 months ago |
2971-find-polygon-with-the-largest-perimeter.py |
2974. Minimum Number Game |
Easy |
|
|
|
2975. Maximum Square Area by Removing Fences From a Field |
Medium |
|
|
|
2976. Minimum Cost to Convert String I |
Medium |
|
|
|
3005. Count Elements With Maximum Frequency |
Easy |
|
5 months ago |
3005-count-elements-with-maximum-frequency.py |
3014. Minimum Number of Pushes to Type Word I |
Easy |
|
|
|
3015. Count the Number of Houses at a Certain Distance I |
Medium |
|
|
|
3016. Minimum Number of Pushes to Type Word II |
Medium |
|
last week |
3016-minimum-number-of-pushes-to-type-word-ii.py |
3062. Winner of the Linked List Game |
Easy |
Premium |
6 months ago |
3062-winner-of-the-linked-list-game.py |
3063. Linked List Frequency |
Medium |
Premium |
5 months ago |
3063-linked-list-frequency.py |
3075. Maximize Happiness of Selected Children |
Medium |
|
3 months ago |
3075-maximize-happiness-of-selected-children.py |
3110. Score of a String |
Easy |
|
3 months ago |
3110-score-of-a-string.py |