Skip to content

fancymax/Leetcode_Swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

42 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

✏️ Leetcode Solutions with Swift,Cpp

Update time: 2018-07-23 21:32:04

Auto created by leetcode_generate

I have solved 92 / 819 problems while there are 139 problems still locked.

If you want to use this tool please follow this Usage Guide

If you have any question, please give me an issue.

If you are loving solving problems in leetcode, please contact me to enjoy it together!

(Notes: πŸ”’ means you need to buy a book from Leetcode to unlock the problem)

# Title Source Code Article Difficulty
1 two-sum Cpp Swift πŸ“ Easy
2 add-two-numbers Swift Cpp πŸ“ Medium
3 longest-substring-without-repeating-characters Swift Cpp πŸ“ Medium
4 median-of-two-sorted-arrays Swift Cpp πŸ“ Hard
5 longest-palindromic-substring Cpp πŸ“ Medium
6 zigzag-conversion πŸ“ Medium
7 reverse-integer πŸ“ Easy
8 string-to-integer-atoi Cpp Medium
9 palindrome-number πŸ“ Easy
10 regular-expression-matching πŸ“ Hard
11 container-with-most-water πŸ“ Medium
12 integer-to-roman Medium
13 roman-to-integer Easy
14 longest-common-prefix πŸ“ Easy
15 3sum Cpp Swift Medium
16 3sum-closest Medium
17 letter-combinations-of-a-phone-number Cpp Medium
18 4sum Swift Medium
19 remove-nth-node-from-end-of-list πŸ“ Medium
20 valid-parentheses Cpp Easy
21 merge-two-sorted-lists πŸ“ Easy
22 generate-parentheses πŸ“ Medium
23 merge-k-sorted-lists πŸ“ Hard
24 swap-nodes-in-pairs Medium
25 reverse-nodes-in-k-group Hard
26 remove-duplicates-from-sorted-array πŸ“ Easy
27 remove-element πŸ“ Easy
28 implement-strstr Swift Easy
29 divide-two-integers Medium
30 substring-with-concatenation-of-all-words Hard
31 next-permutation πŸ“ Medium
32 longest-valid-parentheses πŸ“ Hard
33 search-in-rotated-sorted-array Cpp Medium
34 find-first-and-last-position-of-element-in-sorted-array Cpp πŸ“ Medium
35 search-insert-position Easy
36 valid-sudoku Cpp Medium
37 sudoku-solver Hard
38 count-and-say Easy
39 combination-sum Cpp Medium
40 combination-sum-ii Cpp Medium
41 first-missing-positive Hard
42 trapping-rain-water πŸ“ Hard
43 multiply-strings Medium
44 wildcard-matching Hard
45 jump-game-ii Hard
46 permutations Medium
47 permutations-ii Medium
48 rotate-image Medium
49 group-anagrams Swift πŸ“ Medium
50 powx-n πŸ“ Medium
51 n-queens Hard
52 n-queens-ii Hard
53 maximum-subarray Cpp Easy
54 spiral-matrix πŸ“ Medium
55 jump-game πŸ“ Medium
56 merge-intervals Cpp πŸ“ Medium
57 insert-interval Hard
58 length-of-last-word Easy
59 spiral-matrix-ii Medium
60 permutation-sequence Medium
61 rotate-list Medium
62 unique-paths Cpp Medium
63 unique-paths-ii Medium
64 minimum-path-sum πŸ“ Medium
65 valid-number Hard
66 plus-one Easy
67 add-binary Easy
68 text-justification Hard
69 sqrtx Cpp Easy
70 climbing-stairs Cpp πŸ“ Easy
71 simplify-path Medium
72 edit-distance Hard
73 set-matrix-zeroes Medium
74 search-a-2d-matrix Medium
75 sort-colors Cpp Medium
76 minimum-window-substring Hard
77 combinations Medium
78 subsets Medium
79 word-search Medium
80 remove-duplicates-from-sorted-array-ii Medium
81 search-in-rotated-sorted-array-ii Medium
82 remove-duplicates-from-sorted-list-ii Medium
83 remove-duplicates-from-sorted-list πŸ“ Easy
84 largest-rectangle-in-histogram πŸ“ Hard
85 maximal-rectangle Hard
86 partition-list Medium
87 scramble-string Hard
88 merge-sorted-array Cpp Easy
89 gray-code Medium
90 subsets-ii Medium
91 decode-ways Cpp Medium
92 reverse-linked-list-ii Medium
93 restore-ip-addresses Medium
94 binary-tree-inorder-traversal Cpp πŸ“ Medium
95 unique-binary-search-trees-ii Medium
96 unique-binary-search-trees Cpp Medium
97 interleaving-string πŸ“ Hard
98 validate-binary-search-tree Cpp Medium
99 recover-binary-search-tree Hard
100 same-tree Easy
101 symmetric-tree Cpp πŸ“ Easy
102 binary-tree-level-order-traversal Cpp Swift Medium
103 binary-tree-zigzag-level-order-traversal Medium
104 maximum-depth-of-binary-tree Cpp Easy
105 construct-binary-tree-from-preorder-and-inorder-traversal Medium
106 construct-binary-tree-from-inorder-and-postorder-traversal Medium
107 binary-tree-level-order-traversal-ii Easy
108 convert-sorted-array-to-binary-search-tree Cpp Easy
109 convert-sorted-list-to-binary-search-tree Medium
110 balanced-binary-tree Easy
111 minimum-depth-of-binary-tree Easy
112 path-sum Cpp Easy
113 path-sum-ii Medium
114 flatten-binary-tree-to-linked-list Medium
115 distinct-subsequences Hard
116 populating-next-right-pointers-in-each-node Cpp Medium
117 populating-next-right-pointers-in-each-node-ii Medium
118 pascals-triangle πŸ“ Easy
119 pascals-triangle-ii Easy
120 triangle Medium
121 best-time-to-buy-and-sell-stock Cpp πŸ“ Easy
122 best-time-to-buy-and-sell-stock-ii πŸ“ Easy
123 best-time-to-buy-and-sell-stock-iii Hard
124 binary-tree-maximum-path-sum Hard
125 valid-palindrome Easy
126 word-ladder-ii Hard
127 word-ladder Cpp Medium
128 longest-consecutive-sequence πŸ“ Hard
129 sum-root-to-leaf-numbers Medium
130 surrounded-regions Medium
131 palindrome-partitioning Medium
132 palindrome-partitioning-ii Hard
133 clone-graph Medium
134 gas-station Medium
135 candy πŸ“ Hard
136 single-number Cpp πŸ“ Easy
137 single-number-ii Medium
138 copy-list-with-random-pointer Medium
139 word-break πŸ“ Medium
140 word-break-ii πŸ“ Hard
141 linked-list-cycle πŸ“ Easy
142 linked-list-cycle-ii πŸ“ Medium
143 reorder-list Medium
144 binary-tree-preorder-traversal Cpp Medium
145 binary-tree-postorder-traversal Cpp Hard
146 lru-cache Hard
147 insertion-sort-list Medium
148 sort-list Medium
149 max-points-on-a-line Hard
150 evaluate-reverse-polish-notation Medium
151 reverse-words-in-a-string Medium
152 maximum-product-subarray Medium
153 find-minimum-in-rotated-sorted-array Cpp Medium
154 find-minimum-in-rotated-sorted-array-ii Hard
155 min-stack Cpp Easy
156 binary-tree-upside-down πŸ”’ Medium
157 read-n-characters-given-read4 πŸ”’ Easy
158 read-n-characters-given-read4-ii-call-multiple-times πŸ”’ Hard
159 longest-substring-with-at-most-two-distinct-characters πŸ”’ Hard
160 intersection-of-two-linked-lists Cpp πŸ“ Easy
161 one-edit-distance πŸ”’ Medium
162 find-peak-element Cpp πŸ“ Medium
163 missing-ranges πŸ”’ Medium
164 maximum-gap πŸ“ Hard
165 compare-version-numbers Medium
166 fraction-to-recurring-decimal πŸ“ Medium
167 two-sum-ii-input-array-is-sorted Swift πŸ“ Easy
168 excel-sheet-column-title Easy
169 majority-element Cpp πŸ“ Easy
170 two-sum-iii-data-structure-design πŸ”’ Easy
171 excel-sheet-column-number Easy
172 factorial-trailing-zeroes Easy
173 binary-search-tree-iterator Medium
174 dungeon-game Hard
179 largest-number πŸ“ Medium
186 reverse-words-in-a-string-ii πŸ”’ Medium
187 repeated-dna-sequences Medium
188 best-time-to-buy-and-sell-stock-iv Hard
189 rotate-array πŸ“ Easy
190 reverse-bits Easy
191 number-of-1-bits πŸ“ Easy
198 house-robber Cpp πŸ“ Easy
199 binary-tree-right-side-view πŸ“ Medium
200 number-of-islands Cpp πŸ“ Medium
201 bitwise-and-of-numbers-range Medium
202 happy-number Cpp Easy
203 remove-linked-list-elements Easy
204 count-primes Easy
205 isomorphic-strings Cpp Easy
206 reverse-linked-list Cpp πŸ“ Easy
207 course-schedule Medium
208 implement-trie-prefix-tree Cpp πŸ“ Medium
209 minimum-size-subarray-sum πŸ“ Medium
210 course-schedule-ii Medium
211 add-and-search-word-data-structure-design Medium
212 word-search-ii Hard
213 house-robber-ii Medium
214 shortest-palindrome πŸ“ Hard
215 kth-largest-element-in-an-array Cpp Medium
216 combination-sum-iii Medium
217 contains-duplicate Cpp πŸ“ Easy
218 the-skyline-problem Hard
219 contains-duplicate-ii πŸ“ Easy
220 contains-duplicate-iii πŸ“ Medium
221 maximal-square πŸ“ Medium
222 count-complete-tree-nodes Medium
223 rectangle-area Medium
224 basic-calculator Hard
225 implement-stack-using-queues πŸ“ Easy
226 invert-binary-tree πŸ“ Easy
227 basic-calculator-ii Medium
228 summary-ranges πŸ“ Medium
229 majority-element-ii Medium
230 kth-smallest-element-in-a-bst Medium
231 power-of-two Easy
232 implement-queue-using-stacks πŸ“ Easy
233 number-of-digit-one πŸ“ Hard
234 palindrome-linked-list Easy
235 lowest-common-ancestor-of-a-binary-search-tree Easy
236 lowest-common-ancestor-of-a-binary-tree Medium
237 delete-node-in-a-linked-list πŸ“ Easy
238 product-of-array-except-self Medium
239 sliding-window-maximum Hard
240 search-a-2d-matrix-ii πŸ“ Medium
241 different-ways-to-add-parentheses Medium
242 valid-anagram πŸ“ Easy
243 shortest-word-distance πŸ”’ πŸ“ Easy
244 shortest-word-distance-ii πŸ”’ Medium
245 shortest-word-distance-iii πŸ”’ Medium
246 strobogrammatic-number πŸ”’ Easy
247 strobogrammatic-number-ii πŸ”’ Medium
248 strobogrammatic-number-iii πŸ”’ Hard
249 group-shifted-strings πŸ”’ Medium
250 count-univalue-subtrees πŸ”’ Medium
251 flatten-2d-vector πŸ”’ Medium
252 meeting-rooms πŸ”’ πŸ“ Easy
253 meeting-rooms-ii πŸ”’ Medium
254 factor-combinations πŸ”’ Medium
255 verify-preorder-sequence-in-binary-search-tree πŸ”’ Medium
256 paint-house πŸ”’ Easy
257 binary-tree-paths Easy
258 add-digits Easy
259 3sum-smaller πŸ”’ πŸ“ Medium
260 single-number-iii Medium
261 graph-valid-tree πŸ”’ Medium
263 ugly-number Easy
264 ugly-number-ii Medium
265 paint-house-ii πŸ”’ Hard
266 palindrome-permutation πŸ”’ πŸ“ Easy
267 palindrome-permutation-ii πŸ”’ πŸ“ Medium
268 missing-number πŸ“ Easy
269 alien-dictionary πŸ”’ Hard
270 closest-binary-search-tree-value πŸ”’ Easy
271 encode-and-decode-strings πŸ”’ Medium
272 closest-binary-search-tree-value-ii πŸ”’ Hard
273 integer-to-english-words Hard
274 h-index πŸ“ Medium
275 h-index-ii Medium
276 paint-fence πŸ”’ Easy
277 find-the-celebrity πŸ”’ Medium
278 first-bad-version Cpp πŸ“ Easy
279 perfect-squares Cpp Swift Medium
280 wiggle-sort πŸ”’ πŸ“ Medium
281 zigzag-iterator πŸ”’ Medium
282 expression-add-operators Hard
283 move-zeroes Cpp πŸ“ Easy
284 peeking-iterator Medium
285 inorder-successor-in-bst πŸ”’ Medium
286 walls-and-gates πŸ”’ πŸ“ Medium
287 find-the-duplicate-number πŸ“ Medium
288 unique-word-abbreviation πŸ”’ πŸ“ Medium
289 game-of-life Cpp Medium
290 word-pattern Easy
291 word-pattern-ii πŸ”’ Hard
292 nim-game πŸ“ Easy
293 flip-game πŸ”’ Easy
294 flip-game-ii πŸ”’ Medium
295 find-median-from-data-stream πŸ“ Hard
296 best-meeting-point πŸ”’ πŸ“ Hard
297 serialize-and-deserialize-binary-tree Cpp Hard
298 binary-tree-longest-consecutive-sequence πŸ”’ πŸ“ Medium
299 bulls-and-cows Medium
300 longest-increasing-subsequence Cpp πŸ“ Medium
301 remove-invalid-parentheses Hard
302 smallest-rectangle-enclosing-black-pixels πŸ”’ πŸ“ Hard
303 range-sum-query-immutable πŸ“ Easy
304 range-sum-query-2d-immutable πŸ“ Medium
305 number-of-islands-ii πŸ”’ πŸ“ Hard
306 additive-number Medium
307 range-sum-query-mutable πŸ“ Medium
308 range-sum-query-2d-mutable πŸ”’ Hard
309 best-time-to-buy-and-sell-stock-with-cooldown Medium
310 minimum-height-trees Medium
311 sparse-matrix-multiplication πŸ”’ Medium
312 burst-balloons Hard
313 super-ugly-number Medium
314 binary-tree-vertical-order-traversal πŸ”’ Medium
315 count-of-smaller-numbers-after-self Hard
316 remove-duplicate-letters Hard
317 shortest-distance-from-all-buildings πŸ”’ Hard
318 maximum-product-of-word-lengths Medium
319 bulb-switcher Medium
320 generalized-abbreviation πŸ”’ πŸ“ Medium
321 create-maximum-number Hard
322 coin-change Swift Cpp πŸ“ Medium
323 number-of-connected-components-in-an-undirected-graph πŸ”’ Medium
324 wiggle-sort-ii Medium
325 maximum-size-subarray-sum-equals-k πŸ”’ Medium
326 power-of-three πŸ“ Easy
327 count-of-range-sum Hard
328 odd-even-linked-list πŸ“ Medium
329 longest-increasing-path-in-a-matrix πŸ“ Hard
330 patching-array πŸ“ Hard
331 verify-preorder-serialization-of-a-binary-tree Medium
332 reconstruct-itinerary Medium
333 largest-bst-subtree πŸ”’ Medium
334 increasing-triplet-subsequence Medium
335 self-crossing Hard
336 palindrome-pairs Hard
337 house-robber-iii Medium
338 counting-bits πŸ“ Medium
339 nested-list-weight-sum πŸ”’ πŸ“ Easy
340 longest-substring-with-at-most-k-distinct-characters πŸ”’ Hard
341 flatten-nested-list-iterator Medium
342 power-of-four Easy
343 integer-break Medium
344 reverse-string Cpp Easy
345 reverse-vowels-of-a-string Easy
346 moving-average-from-data-stream πŸ”’ Easy
347 top-k-frequent-elements Medium
348 design-tic-tac-toe πŸ”’ Medium
349 intersection-of-two-arrays Cpp Easy
350 intersection-of-two-arrays-ii Cpp Easy
351 android-unlock-patterns πŸ”’ πŸ“ Medium
352 data-stream-as-disjoint-intervals Hard
353 design-snake-game πŸ”’ Medium
354 russian-doll-envelopes Hard
355 design-twitter Medium
356 line-reflection πŸ”’ Medium
357 count-numbers-with-unique-digits Medium
358 rearrange-string-k-distance-apart πŸ”’ Hard
359 logger-rate-limiter πŸ”’ Easy
360 sort-transformed-array πŸ”’ Medium
361 bomb-enemy πŸ”’ Medium
362 design-hit-counter πŸ”’ Medium
363 max-sum-of-rectangle-no-larger-than-k Hard
364 nested-list-weight-sum-ii πŸ”’ Medium
365 water-and-jug-problem Medium
366 find-leaves-of-binary-tree πŸ”’ Medium
367 valid-perfect-square Easy
368 largest-divisible-subset Medium
369 plus-one-linked-list πŸ”’ Medium
370 range-addition πŸ”’ πŸ“ Medium
371 sum-of-two-integers Easy
372 super-pow Medium
373 find-k-pairs-with-smallest-sums Medium
374 guess-number-higher-or-lower πŸ“ Easy
375 guess-number-higher-or-lower-ii πŸ“ Medium
376 wiggle-subsequence πŸ“ Medium
377 combination-sum-iv Cpp Medium
378 kth-smallest-element-in-a-sorted-matrix Medium
379 design-phone-directory πŸ”’ Medium
380 insert-delete-getrandom-o1 Medium
381 insert-delete-getrandom-o1-duplicates-allowed Hard
382 linked-list-random-node Medium
383 ransom-note Easy
384 shuffle-an-array πŸ“ Medium
385 mini-parser Medium
386 lexicographical-numbers Medium
387 first-unique-character-in-a-string Cpp Easy
388 longest-absolute-file-path Medium
389 find-the-difference Cpp Easy
390 elimination-game Medium
391 perfect-rectangle Hard
392 is-subsequence Medium
393 utf-8-validation Medium
394 decode-string Medium
395 longest-substring-with-at-least-k-repeating-characters Medium
396 rotate-function Medium
397 integer-replacement Medium
398 random-pick-index Medium
399 evaluate-division Medium
400 nth-digit Easy
401 binary-watch Easy
402 remove-k-digits Cpp Medium
403 frog-jump Cpp πŸ“ Hard
404 sum-of-left-leaves Easy
405 convert-a-number-to-hexadecimal Easy
406 queue-reconstruction-by-height Medium
407 trapping-rain-water-ii Hard
408 valid-word-abbreviation πŸ”’ Easy
409 longest-palindrome πŸ“ Easy
410 split-array-largest-sum πŸ“ Hard
411 minimum-unique-word-abbreviation πŸ”’ Hard
412 fizz-buzz Easy
413 arithmetic-slices πŸ“ Medium
414 third-maximum-number Easy
415 add-strings Cpp Easy
416 partition-equal-subset-sum Medium
417 pacific-atlantic-water-flow Medium
418 sentence-screen-fitting πŸ”’ Medium
419 battleships-in-a-board Medium
420 strong-password-checker Hard
421 maximum-xor-of-two-numbers-in-an-array Medium
422 valid-word-square πŸ”’ Easy
423 reconstruct-original-digits-from-english Medium
424 longest-repeating-character-replacement Medium
425 word-squares πŸ”’ Hard
432 all-oone-data-structure Hard
433 minimum-genetic-mutation Medium
434 number-of-segments-in-a-string πŸ“ Easy
435 non-overlapping-intervals πŸ“ Medium
436 find-right-interval πŸ“ Medium
437 path-sum-iii Easy
438 find-all-anagrams-in-a-string Easy
439 ternary-expression-parser πŸ”’ Medium
440 k-th-smallest-in-lexicographical-order Hard
441 arranging-coins Easy
442 find-all-duplicates-in-an-array Medium
443 string-compression πŸ“ Easy
444 sequence-reconstruction πŸ”’ Medium
445 add-two-numbers-ii Medium
446 arithmetic-slices-ii-subsequence πŸ“ Hard
447 number-of-boomerangs Easy
448 find-all-numbers-disappeared-in-an-array Easy
449 serialize-and-deserialize-bst Medium
450 delete-node-in-a-bst Medium
451 sort-characters-by-frequency Medium
452 minimum-number-of-arrows-to-burst-balloons Medium
453 minimum-moves-to-equal-array-elements πŸ“ Easy
454 4sum-ii Medium
455 assign-cookies Easy
456 132-pattern πŸ“ Medium
457 circular-array-loop Medium
458 poor-pigs Easy
459 repeated-substring-pattern Easy
460 lfu-cache Hard
461 hamming-distance Easy
462 minimum-moves-to-equal-array-elements-ii πŸ“ Medium
463 island-perimeter Cpp Easy
464 can-i-win Medium
465 optimal-account-balancing πŸ”’ Hard
466 count-the-repetitions πŸ“ Hard
467 unique-substrings-in-wraparound-string Medium
468 validate-ip-address Medium
469 convex-polygon πŸ”’ Medium
471 encode-string-with-shortest-length πŸ”’ Hard
472 concatenated-words Hard
473 matchsticks-to-square Medium
474 ones-and-zeroes πŸ“ Medium
475 heaters Easy
476 number-complement Easy
477 total-hamming-distance πŸ“ Medium
479 largest-palindrome-product Easy
480 sliding-window-median πŸ“ Hard
481 magical-string Medium
482 license-key-formatting Easy
483 smallest-good-base Hard
484 find-permutation πŸ”’ πŸ“ Medium
485 max-consecutive-ones Easy
486 predict-the-winner πŸ“ Medium
487 max-consecutive-ones-ii πŸ”’ Medium
488 zuma-game Hard
490 the-maze πŸ”’ πŸ“ Medium
491 increasing-subsequences Medium
492 construct-the-rectangle Easy
493 reverse-pairs πŸ“ Hard
494 target-sum πŸ“ Medium
495 teemo-attacking Medium
496 next-greater-element-i πŸ“ Easy
498 diagonal-traverse Medium
499 the-maze-iii πŸ”’ Hard
500 keyboard-row Easy
501 find-mode-in-binary-search-tree Easy
502 ipo Hard
503 next-greater-element-ii πŸ“ Medium
504 base-7 Easy
505 the-maze-ii πŸ”’ πŸ“ Medium
506 relative-ranks Easy
507 perfect-number πŸ“ Easy
508 most-frequent-subtree-sum Medium
513 find-bottom-left-tree-value Medium
514 freedom-trail Hard
515 find-largest-value-in-each-tree-row Medium
516 longest-palindromic-subsequence Medium
517 super-washing-machines Hard
518 coin-change-2 Medium
520 detect-capital Easy
521 longest-uncommon-subsequence-i πŸ“ Easy
522 longest-uncommon-subsequence-ii πŸ“ Medium
523 continuous-subarray-sum πŸ“ Medium
524 longest-word-in-dictionary-through-deleting πŸ“ Medium
525 contiguous-array πŸ“ Medium
526 beautiful-arrangement πŸ“ Medium
527 word-abbreviation πŸ”’ πŸ“ Hard
529 minesweeper Medium
530 minimum-absolute-difference-in-bst Easy
531 lonely-pixel-i πŸ”’ Medium
532 k-diff-pairs-in-an-array Easy
533 lonely-pixel-ii πŸ”’ Medium
535 encode-and-decode-tinyurl πŸ“ Medium
536 construct-binary-tree-from-string πŸ”’ Medium
537 complex-number-multiplication πŸ“ Medium
538 convert-bst-to-greater-tree πŸ“ Easy
539 minimum-time-difference Medium
540 single-element-in-a-sorted-array Medium
541 reverse-string-ii πŸ“ Easy
542 01-matrix πŸ“ Medium
543 diameter-of-binary-tree Cpp πŸ“ Easy
544 output-contest-matches πŸ”’ πŸ“ Medium
545 boundary-of-binary-tree πŸ”’ πŸ“ Medium
546 remove-boxes πŸ“ Hard
547 friend-circles πŸ“ Medium
548 split-array-with-equal-sum πŸ”’ πŸ“ Medium
549 binary-tree-longest-consecutive-sequence-ii πŸ”’ πŸ“ Medium
551 student-attendance-record-i πŸ“ Easy
552 student-attendance-record-ii πŸ“ Hard
553 optimal-division πŸ“ Medium
554 brick-wall πŸ“ Medium
555 split-concatenated-strings πŸ”’ πŸ“ Medium
556 next-greater-element-iii πŸ“ Medium
557 reverse-words-in-a-string-iii πŸ“ Easy
560 subarray-sum-equals-k πŸ“ Medium
561 array-partition-i πŸ“ Easy
562 longest-line-of-consecutive-one-in-matrix πŸ”’ πŸ“ Medium
563 binary-tree-tilt πŸ“ Easy
564 find-the-closest-palindrome πŸ“ Hard
565 array-nesting πŸ“ Medium
566 reshape-the-matrix πŸ“ Easy
567 permutation-in-string πŸ“ Medium
568 maximum-vacation-days πŸ”’ πŸ“ Hard
572 subtree-of-another-tree πŸ“ Easy
573 squirrel-simulation πŸ”’ πŸ“ Medium
575 distribute-candies πŸ“ Easy
576 out-of-boundary-paths πŸ“ Medium
581 shortest-unsorted-continuous-subarray πŸ“ Easy
582 kill-process πŸ”’ πŸ“ Medium
583 delete-operation-for-two-strings πŸ“ Medium
587 erect-the-fence πŸ“ Hard
588 design-in-memory-file-system πŸ”’ πŸ“ Hard
591 tag-validator πŸ“ Hard
592 fraction-addition-and-subtraction πŸ“ Medium
593 valid-square πŸ“ Medium
594 longest-harmonious-subsequence πŸ“ Easy
598 range-addition-ii πŸ“ Easy
599 minimum-index-sum-of-two-lists Cpp πŸ“ Easy
600 non-negative-integers-without-consecutive-ones πŸ“ Hard
604 design-compressed-string-iterator πŸ”’ πŸ“ Easy
605 can-place-flowers πŸ“ Easy
606 construct-string-from-binary-tree πŸ“ Easy
609 find-duplicate-file-in-system πŸ“ Medium
611 valid-triangle-number πŸ“ Medium
616 add-bold-tag-in-string πŸ”’ πŸ“ Medium
617 merge-two-binary-trees πŸ“ Easy
621 task-scheduler πŸ“ Medium
623 add-one-row-to-tree πŸ“ Medium
624 maximum-distance-in-arrays πŸ”’ πŸ“ Easy
625 minimum-factorization πŸ”’ πŸ“ Medium
628 maximum-product-of-three-numbers πŸ“ Easy
629 k-inverse-pairs-array πŸ“ Hard
630 course-schedule-iii πŸ“ Hard
631 design-excel-sum-formula πŸ”’ πŸ“ Hard
632 smallest-range πŸ“ Hard
633 sum-of-square-numbers πŸ“ Easy
634 find-the-derangement-of-an-array πŸ”’ πŸ“ Medium
635 design-log-storage-system πŸ”’ πŸ“ Medium
636 exclusive-time-of-functions πŸ“ Medium
637 average-of-levels-in-binary-tree πŸ“ Easy
638 shopping-offers πŸ“ Medium
639 decode-ways-ii πŸ“ Hard
640 solve-the-equation πŸ“ Medium
642 design-search-autocomplete-system πŸ”’ πŸ“ Hard
643 maximum-average-subarray-i πŸ“ Easy
644 maximum-average-subarray-ii πŸ”’ πŸ“ Hard
645 set-mismatch πŸ“ Easy
646 maximum-length-of-pair-chain πŸ“ Medium
647 palindromic-substrings πŸ“ Medium
648 replace-words πŸ“ Medium
649 dota2-senate πŸ“ Medium
650 2-keys-keyboard πŸ“ Medium
651 4-keys-keyboard πŸ”’ πŸ“ Medium
652 find-duplicate-subtrees πŸ“ Medium
653 two-sum-iv-input-is-a-bst πŸ“ Easy
654 maximum-binary-tree πŸ“ Medium
655 print-binary-tree πŸ“ Medium
656 coin-path πŸ”’ πŸ“ Hard
657 judge-route-circle πŸ“ Easy
658 find-k-closest-elements Cpp πŸ“ Medium
659 split-array-into-consecutive-subsequences πŸ“ Medium
660 remove-9 πŸ”’ πŸ“ Hard
661 image-smoother πŸ“ Easy
662 maximum-width-of-binary-tree πŸ“ Medium
663 equal-tree-partition πŸ”’ πŸ“ Medium
664 strange-printer πŸ“ Hard
665 non-decreasing-array πŸ“ Easy
666 path-sum-iv πŸ”’ πŸ“ Medium
667 beautiful-arrangement-ii πŸ“ Medium
668 kth-smallest-number-in-multiplication-table πŸ“ Hard
669 trim-a-binary-search-tree πŸ“ Easy
670 maximum-swap πŸ“ Medium
671 second-minimum-node-in-a-binary-tree πŸ“ Easy
672 bulb-switcher-ii πŸ“ Medium
673 number-of-longest-increasing-subsequence πŸ“ Medium
674 longest-continuous-increasing-subsequence πŸ“ Easy
675 cut-off-trees-for-golf-event πŸ“ Hard
676 implement-magic-dictionary πŸ“ Medium
677 map-sum-pairs Cpp πŸ“ Medium
678 valid-parenthesis-string πŸ“ Medium
679 24-game πŸ“ Hard
680 valid-palindrome-ii πŸ“ Easy
681 next-closest-time πŸ”’ πŸ“ Medium
682 baseball-game πŸ“ Easy
683 k-empty-slots πŸ”’ πŸ“ Hard
684 redundant-connection πŸ“ Medium
685 redundant-connection-ii πŸ“ Hard
686 repeated-string-match πŸ“ Easy
687 longest-univalue-path πŸ“ Easy
688 knight-probability-in-chessboard πŸ“ Medium
689 maximum-sum-of-3-non-overlapping-subarrays πŸ“ Hard
690 employee-importance πŸ“ Easy
691 stickers-to-spell-word πŸ“ Hard
692 top-k-frequent-words πŸ“ Medium
693 binary-number-with-alternating-bits πŸ“ Easy
694 number-of-distinct-islands πŸ”’ πŸ“ Medium
695 max-area-of-island πŸ“ Easy
696 count-binary-substrings πŸ“ Easy
697 degree-of-an-array πŸ“ Easy
698 partition-to-k-equal-sum-subsets πŸ“ Medium
699 falling-squares πŸ“ Hard
711 number-of-distinct-islands-ii πŸ”’ πŸ“ Hard
712 minimum-ascii-delete-sum-for-two-strings πŸ“ Medium
713 subarray-product-less-than-k πŸ“ Medium
714 best-time-to-buy-and-sell-stock-with-transaction-fee πŸ“ Medium
715 range-module πŸ“ Hard
716 max-stack πŸ”’ πŸ“ Hard
717 1-bit-and-2-bit-characters πŸ“ Easy
718 maximum-length-of-repeated-subarray πŸ“ Medium
719 find-k-th-smallest-pair-distance πŸ“ Hard
720 longest-word-in-dictionary πŸ“ Easy
721 accounts-merge πŸ“ Medium
722 remove-comments πŸ“ Medium
723 candy-crush πŸ”’ πŸ“ Medium
724 find-pivot-index πŸ“ Easy
725 split-linked-list-in-parts πŸ“ Medium
726 number-of-atoms πŸ“ Hard
727 minimum-window-subsequence πŸ”’ πŸ“ Hard
728 self-dividing-numbers πŸ“ Easy
729 my-calendar-i πŸ“ Medium
730 count-different-palindromic-subsequences πŸ“ Hard
731 my-calendar-ii πŸ“ Medium
732 my-calendar-iii πŸ“ Hard
733 flood-fill πŸ“ Easy
734 sentence-similarity πŸ”’ πŸ“ Easy
735 asteroid-collision πŸ“ Medium
736 parse-lisp-expression πŸ“ Hard
737 sentence-similarity-ii πŸ”’ πŸ“ Medium
738 monotone-increasing-digits πŸ“ Medium
739 daily-temperatures πŸ“ Medium
740 delete-and-earn πŸ“ Medium
741 cherry-pickup πŸ“ Hard
742 to-lower-case Easy
743 closest-leaf-in-a-binary-tree πŸ”’ πŸ“ Medium
744 network-delay-time πŸ“ Medium
745 find-smallest-letter-greater-than-target πŸ“ Easy
746 prefix-and-suffix-search πŸ“ Hard
747 min-cost-climbing-stairs πŸ“ Easy
748 largest-number-at-least-twice-of-others πŸ“ Easy
749 shortest-completing-word πŸ“ Medium
750 contain-virus πŸ“ Hard
751 number-of-corner-rectangles πŸ”’ πŸ“ Medium
752 ip-to-cidr πŸ”’ πŸ“ Easy
753 open-the-lock πŸ“ Medium
754 cracking-the-safe πŸ“ Hard
755 reach-a-number πŸ“ Medium
756 pour-water πŸ”’ πŸ“ Medium
757 pyramid-transition-matrix πŸ“ Medium
758 convert-binary-search-tree-to-sorted-doubly-linked-list πŸ”’ Medium
759 set-intersection-size-at-least-two πŸ“ Hard
760 bold-words-in-string πŸ”’ πŸ“ Easy
761 employee-free-time πŸ”’ πŸ“ Hard
762 find-anagram-mappings πŸ”’ πŸ“ Easy
763 special-binary-string πŸ“ Hard
764 n-ary-tree-level-order-traversal Easy
765 serialize-and-deserialize-n-ary-tree πŸ”’ Hard
766 flatten-a-multilevel-doubly-linked-list Medium
767 prime-number-of-set-bits-in-binary-representation πŸ“ Easy
768 partition-labels πŸ“ Medium
769 largest-plus-sign πŸ“ Medium
770 couples-holding-hands πŸ“ Hard
771 encode-n-ary-tree-to-binary-tree πŸ”’ Hard
772 construct-quad-tree Easy
773 quad-tree-intersection Easy
774 maximum-depth-of-n-ary-tree Easy
775 n-ary-tree-preorder-traversal Easy
776 n-ary-tree-postorder-traversal Easy
777 toeplitz-matrix Cpp πŸ“ Easy
778 reorganize-string πŸ“ Medium
779 max-chunks-to-make-sorted-ii πŸ“ Hard
780 max-chunks-to-make-sorted πŸ“ Medium
781 basic-calculator-iv πŸ“ Hard
782 jewels-and-stones πŸ“ Easy
783 search-in-a-binary-search-tree Easy
784 insert-into-a-binary-search-tree Medium
785 basic-calculator-iii πŸ”’ Hard
786 search-in-a-sorted-array-of-unknown-size πŸ”’ Medium
787 sliding-puzzle πŸ“ Hard
788 minimize-max-distance-to-gas-station πŸ”’ πŸ“ Hard
789 kth-largest-element-in-a-stream Easy
790 global-and-local-inversions πŸ“ Medium
791 split-bst πŸ”’ πŸ“ Medium
792 binary-search Cpp Easy
793 swap-adjacent-in-lr-string πŸ“ Medium
794 swim-in-rising-water πŸ“ Hard
795 k-th-symbol-in-grammar πŸ“ Medium
796 reaching-points πŸ“ Hard
797 rabbits-in-forest πŸ“ Medium
798 transform-to-chessboard πŸ“ Hard
799 minimum-distance-between-bst-nodes πŸ“ Easy
800 letter-case-permutation πŸ“ Easy
801 is-graph-bipartite πŸ“ Medium
802 k-th-smallest-prime-fraction πŸ“ Hard
803 cheapest-flights-within-k-stops πŸ“ Medium
804 rotated-digits πŸ“ Easy
805 escape-the-ghosts πŸ“ Medium
806 domino-and-tromino-tiling πŸ“ Medium
807 custom-sort-string πŸ“ Medium
808 number-of-matching-subsequences πŸ“ Medium
809 preimage-size-of-factorial-zeroes-function πŸ“ Hard
810 valid-tic-tac-toe-state πŸ“ Medium
811 number-of-subarrays-with-bounded-maximum πŸ“ Medium
812 rotate-string πŸ“ Easy
813 all-paths-from-source-to-target πŸ“ Medium
814 smallest-rotation-with-highest-score πŸ“ Hard
815 champagne-tower πŸ“ Medium
816 design-hashset Cpp Easy
817 design-hashmap Cpp Easy
818 similar-rgb-color πŸ”’ πŸ“ Easy
819 minimum-swaps-to-make-sequences-increasing πŸ“ Medium
820 find-eventual-safe-states πŸ“ Medium
821 bricks-falling-when-hit πŸ“ Hard
822 unique-morse-code-words πŸ“ Easy
823 split-array-with-same-average πŸ“ Hard
824 number-of-lines-to-write-string πŸ“ Easy
825 max-increase-to-keep-city-skyline πŸ“ Medium
826 soup-servings πŸ“ Medium
827 expressive-words πŸ“ Medium
828 chalkboard-xor-game πŸ“ Hard
829 subdomain-visit-count πŸ“ Easy
830 largest-triangle-area πŸ“ Easy
831 largest-sum-of-averages πŸ“ Medium
832 binary-tree-pruning πŸ“ Medium
833 bus-routes πŸ“ Hard
834 ambiguous-coordinates πŸ“ Medium
835 linked-list-components πŸ“ Medium
836 race-car πŸ“ Hard
837 most-common-word πŸ“ Easy
838 design-linked-list Easy
839 short-encoding-of-words πŸ“ Medium
841 shortest-distance-to-a-character πŸ“ Easy
842 card-flipping-game πŸ“ Medium
843 binary-trees-with-factors πŸ“ Medium
850 insert-into-a-cyclic-sorted-list πŸ”’ Medium
851 goat-latin πŸ“ Easy
852 friends-of-appropriate-ages πŸ“ Medium
853 most-profit-assigning-work πŸ“ Medium
854 making-a-large-island πŸ“ Hard
855 unique-letter-string πŸ“ Hard
856 consecutive-numbers-sum πŸ“ Medium
857 positions-of-large-groups πŸ“ Easy
858 masking-personal-information πŸ“ Medium
859 design-circular-deque Medium
860 design-circular-queue Medium
861 flipping-an-image πŸ“ Easy
862 find-and-replace-in-string πŸ“ Medium
863 sum-of-distances-in-tree πŸ“ Hard
864 image-overlap πŸ“ Medium
865 robot-room-cleaner πŸ”’ Hard
866 rectangle-overlap πŸ“ Easy
867 new-21-game πŸ“ Medium
868 push-dominoes πŸ“ Medium
869 similar-string-groups πŸ“ Hard
870 magic-squares-in-grid πŸ“ Easy
871 keys-and-rooms πŸ“ Medium
872 split-array-into-fibonacci-sequence πŸ“ Medium
873 guess-the-word πŸ“ Hard
874 backspace-string-compare πŸ“ Easy
875 longest-mountain-in-array πŸ“ Medium
876 hand-of-straights πŸ“ Medium
877 shortest-path-visiting-all-nodes πŸ“ Hard
878 shifting-letters πŸ“ Medium
879 maximize-distance-to-closest-person πŸ“ Easy
880 rectangle-area-ii πŸ“ Hard
881 loud-and-rich πŸ“ Medium
882 peak-index-in-a-mountain-array πŸ“ Easy
883 car-fleet πŸ“ Medium
884 k-similar-strings πŸ“ Hard
885 exam-room πŸ“ Medium
886 score-of-parentheses πŸ“ Medium
887 minimum-cost-to-hire-k-workers πŸ“ Hard
888 mirror-reflection πŸ“ Medium
889 buddy-strings πŸ“ Easy
890 lemonade-change πŸ“ Easy
891 score-after-flipping-matrix πŸ“ Medium
892 shortest-subarray-with-sum-at-least-k πŸ“ Hard
893 all-nodes-distance-k-in-binary-tree πŸ“ Medium
894 random-pick-with-blacklist πŸ“ Hard
895 shortest-path-to-get-all-keys πŸ“ Hard
896 smallest-subtree-with-all-the-deepest-nodes πŸ“ Medium
897 prime-palindrome πŸ“ Medium
898 transpose-matrix πŸ“ Easy
899 binary-gap πŸ“ Easy
900 reordered-power-of-2 πŸ“ Medium
901 advantage-shuffle πŸ“ Medium
902 minimum-number-of-refueling-stops πŸ“ Hard
903 implement-rand10-using-rand7 πŸ“ Medium
904 leaf-similar-trees πŸ“ Easy
905 length-of-longest-fibonacci-subsequence πŸ“ Medium
906 walking-robot-simulation πŸ“ Easy
907 koko-eating-bananas πŸ“ Medium