-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsolving-statistic.txt
More file actions
661 lines (569 loc) · 14.7 KB
/
solving-statistic.txt
File metadata and controls
661 lines (569 loc) · 14.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
LeetCode Problem Solving Statistics
Status on 13.10.19:
Problems Solved - 431 (Easy - 291; Medium - 125, Hard - 15)
Mock-Interview Completed: 2
14.07.19 - Interviewer: Melkonyan Alex
06.10.19 - Interviewer: Yuhimenko Valentin
To-Learn List:
- Longest increasing subsequence (n*log n)
- Permutations generating
- Combinations generating
- Combinarotics objects generating
- Least Common Ancestor
- Heap
- Generate Parentheses (done)
- Z-function
- KMP
- Manacher's algorithm
- Fisher-Yates Algorithm
- Floyd's Tortoise and Hare (Cycle Detection)
--------------May--------------
#0001 (two-sum)
#0167 (two-sum-ii-input-array-is-sorted)
#0034 (find-first-and-last-position-of-element-in-sorted-array)
-------------June--------------
10.06 (1)
#0389 (find-the-difference)
11.06 (7)
#0007 (reverse-integer)
#0009 (palindrome-number)
#0026 (remove-duplicates-from-sorted-array)
#0069 (sqrtx)
#0136 (single-number)
#0066 (plus-one)
#0190 (reverse-bits)
12.06 (11)
#0191 (number-of-1-bits)
#0633 (sum-of-square-numbers)
#0367 (valid-perfect-square)
#0020 (valid-parentheses)
#0125 (valid-palindrome)
#0746 (min-cost-climbing-stairs)
#0693 (binary-number-with-alternating-bits)
#0709 (to-lower-case)
#0169 (majority-element)
#0035 (search-insert-position)
#0083 (remove-duplicates-from-sorted-list)
13.06 (1)
#0155 (min-stack)
14.06 (12)
#0112 (path-sum)
#0374 (guess-number-higher-or-lower)
#0070 (climbing-stairs)
#0509 (fibonacci-number)
#0121 (best-time-to-buy-and-sell-stock)
#0198 (house-robber)
#0303 (range-sum-query-immutable)
#0104 (maximum-depth-of-binary-tree)
#0559 (maximum-depth-of-n-ary-tree)
#0119 (pascals-triangle-ii)
#0771 (jewels-and-stones)
#0938 (range-sum-of-bst)
15.06 (7)
#0657 (robot-return-to-origin)
#0977 (squares-of-a-sorted-array)
#0961 (n-repeated-element-in-size-2n-array)
#0905 (sort-array-by-parity)
#0832 (flipping-an-image)
#0804 (unique-morse-code-words)
#1021 (remove-outermost-parentheses)
16.06 (20)
#0728 (self-dividing-numbers)
#0477 (total-hamming-distance)
#0461 (hamming-distance)
#1051 (height-checker)
#0852 (peak-index-in-a-mountain-array)
#0561 (array-partition-i)
#0700 (search-in-a-binary-search-tree)
#1078 (occurrences-after-bigram)
#0589 (n-ary-tree-preorder-traversal)
#0590 (n-ary-tree-postorder-traversal)
#0965 (univalued-binary-tree)
#0867 (transpose-matrix)
#0908 (smallest-range-i)
#0344 (reverse-string)
#0557 (reverse-words-in-a-string-iii)
#0897 (increasing-order-search-tree)
#0345 (reverse-vowels-of-a-string)
#0648 (replace-words)
#0412 (fizz-buzz)
#0238 (product-of-array-except-self) !!!
17.06 (15)
#0100 (same-tree)
#0053 (maximum-subarray)
#0058 (length-of-last-word)
#0067 (add-binary)
#0054 (spiral-matrix)
#0059 (spiral-matrix-ii)
#0075 (sort-colors)
#0055 (jump-game)
#0078 (subsets)
#0931 (minimum-falling-path-sum)
#0540 (single-element-in-a-sorted-array)
#0946 (validate-stack-sequences)
#0515 (find-largest-value-in-each-tree-row)
#0297 (serialize-and-deserialize-binary-tree)
#0449 (serialize-and-deserialize-bst)
18.06 (13)
#1047 (remove-all-adjacent-duplicates-in-string)
#0496 (next-greater-element-i)
#0476 (number-complement)
#0704 (binary-search)
#0500 (keyboard-row)
#0463 (island-perimeter)
#0884 (uncommon-words-from-two-sentences)
#0575 (distribute-candies)
#0204 (count-primes)
#0429 (n-ary-tree-level-order-traversal)
#0102 (binary-tree-level-order-traversal)
#0806 (number-of-lines-to-write-string)
#0300 (longest-increasing-subsequence) !!! Trivial
19.06 (21)
#0560 (subarray-sum-equals-k)
#0202 (happy-number)
#0258 (add-digits)
#0263 (ugly-number)
#0264 (ugly-number-ii) !!! Trivial
#0387 (first-unique-character-in-a-string)
#0046 (permutations)
#0237 (delete-node-in-a-linked-list)
#0203 (remove-linked-list-elements)
#0242 (valid-anagram)
#0206 (reverse-linked-list) !!! ONLY ITERATIVLY
#0283 (move-zeroes)
#0217 (contains-duplicate)
#0219 (contains-duplicate-ii)
#0013 (roman-to-integer)
#0012 (integer-to-roman)
#0171 (excel-sheet-column-number)
#0268 (missing-number)
#0326 (power-of-three)
#0231 (power-of-two)
#0342 (power-of-four)
20.06 (9)
#0021 (merge-two-sorted-lists)
#0036 (valid-sudoku)
#0062 (unique-paths)
#0042 (trapping-rain-water) (2 pointers - read other solutions)
#0049 (group-anagrams)
#0453 (minimum-moves-to-equal-array-elements) !!!
#0200 (number-of-islands)
#0695 (max-area-of-island)
#0038 (count-and-say)
21.06 (4)
#0017 (letter-combinations-of-a-phone-number)
#0014 (longest-common-prefix)
#0050 (powx-n)
#0098 (validate-binary-search-tree)
22.06 (1)
#0150 (evaluate-reverse-polish-notation)
23.06 (1)
#0019 (remove-nth-node-from-end-of-list)
24.06 (0)
25.06 (4)
#0094 (binary-tree-inorder-traversal)
#0079 (word-search)
#0212 (word-search-ii) !! bad solution, need trie
#0172 (trailling-zeroes) ?? need to view
26.06 (4)
#0999 (available-captures-for-rook)
#0027 (remove-element)
#0849 (maximize-distance-to-closest-person)
#0883 (projection-area-of-3d-shapes)
27.06 (2)
#0637 (average-of-levels-in-binary-tree)
#0120 (triangle)
28.06 (0)
29.06 (0)
30.07 (0)
-------------July--------------
01.07 (0)
02.07 (0)
03.07 (0)
04.07 (0)
05.07 (0)
06.07 (4)
#0796 rotate-string (needs KMP)
#0994 rotting-oranges
#0543 diameter-of-binary-tree
#0415 add-strings
07.07 (1)
#0492 construct-the-rectangle
08.07 (11)
#0122 best-time-to-buy-and-sell-stock-ii
#1108 defanging-an-ip-address
#0189 rotate-array
#0162 find-peak-element
#0896 monotonic-array
#0747 largest-number-at-least-twice-of-others
#0179 largest-number
#0784 letter-case-permutation
#0976 largest-perimeter-triangle
#0917 reverse-only-letters
#0520 detect-capital
09.07 (8)
#0485 max-consecutive-ones
#0606 construct-string-from-binary-tree
#1071 greatest-common-divisor-of-strings
#0860 lemonade-change
#0881 boats-to-save-people
#1046 last-stone-weight
#0594 longest-harmonious-subsequence
#0541 reverse-string-ii
10.07 (5)
#0022 generate-parentheses
#0292 nim-game
#0037 sudoku-solver
#0028 implement-strstr (needed Z-function) !!!
#0322 coin-change
11.07 (9)
#0111 minimum-depth-of-binary-tree
#0983 minimum-cost-for-tickets
#0232 implement-queue-using-stacks
#0226 ivert-binary-tree
#0222 count-complete-tree-nodes
#1025 divisor-game
#0680 valid-palindrome-ii
#0151 reverse-words-in-a-string
#1002 find-common-characters
12.07 (2)
#0350 intersection-of-two-arrays-ii
#0349 intersection-of-two-arrays
13.07 (11)
#0643 maximum-average-subarray-i
#0064 minimum-path-sum
#0113 path-sum-ii
#0257 binary-tree-paths
#0868 binary-gap
#1089 duplicate-zeros
#1007 minimum-domino-rotations-for-equal-row
#0653 two-sum-iv-input-is-a-bst
#0074 search-a-2d-matrix
#0240 search-a-2d-matrix-ii
#0454 4sum-ii
14.07 (0)
Mock-Interview
15.07 (6)
#0101 symmetric-tree
#0003 longest-substring-without-repeating-characters
#0002 add-two-numbers
#0005 longest-palindromic-substring (need Manacher's Algorithm) !!!!!
#0647 palindromic-substrings (need Manacher's Algorithm) !!!!!
#0091 decode-ways
16.07 (3)
#0011 container-with-most-water
#0900 rle-iterator
#0949 largest-time-for-given-digits
17.07 (0)
18.07 (0)
19.07 (0)
20.07 (0)
21.07 (0)
22.07 (0)
23.07 (0)
24.07 (0)
25.07 (0)
26.07 (0)
27.07 (0)
28.07 (0)
29.07 (0)
30.07 (0)
31.07 (0)
-------------August------------
01.08 (0)
02.08 (0)
03.08 (1)
#0560 subarray-sum-equals-k (improve from O(n^2) to O(n) time)
04.08 (0)
05.08 (4)
#0942 di-string-match/submissions
#0929 unique-email-addresses
#0944 delete-columns-to-make-sorted
#0933 number-of-recent-calls
06.08 (3)
#0876 middle-of-the-linked-list
#0811 subdomain-visit-count
#0922 problems/sort-array-by-parity-ii
07.08 (3)
#1122 relative-sort-array
#1030 matrix-cells-in-distance-order (need BFS !!!)
#0821 shortest-distance-to-a-character
08.08 (2)
#1147 n-th-tribonacci-number
#0794 valid-tic-tac-toe-state
09.08 (0)
10.08 (0)
11.08 (0)
12.08 (0)
13.08 (0)
14.08 (0)
15.08 (0)
16.08 (0)
17.08 (0)
18.08 (0)
19.08 (10)
#0480 sliding-window-median
#0295 find-median-from-data-stream
#0378 kth-smallest-element-in-a-sorted-matrix (O(n*n*log(n*n)) need improve to O(k))
#0859 buddy-strings
#0744 find-smallest-letter-greater-than-target
#0973 k-closest-points-to-origin
#0703 kth-largest-element-in-a-stream
#0872 leaf-similar-trees
#0762 prime-number-of-set-bits-in-binary-representation
#0985 sum-of-even-numbers-after-queries
20.08 (10)
#0893 groups-of-special-equivalent-strings
#1160 find-words-that-can-be-formed-by-characters
#0617 merge-two-binary-trees !!!
#1009 complement-of-base-10-integer
#0566 reshape-the-matrix
#0682 baseball-game
#1022 sum-of-root-to-leaf-binary-numbers
#0824 goat-latin
#0888 fair-candy-swap
#0697 degree-of-an-array
21.08 (10)
#0504 base-7
#0844 backspace-string-compare
#0836 rectangle-overlap
#0392 is-subsequence
#0830 positions-of-large-groups
#0442 find-all-duplicates-in-an-array
#0448 find-all-numbers-disappeared-in-an-array
#0404 sum-of-left-leaves
#1128 number-of-equivalent-domino-pairs
#0674 longest-continuous-increasing-subsequence
22.08 (10)
#0645 set-mismatch
#0287 find-the-duplicate-number
#1037 valid-boomerang
#0866 prime-palindrome
#0877 stone-game
#0914 x-of-a-kind-in-a-deck-of-cards
#0551 student-attendance-record-i
#1010 pairs-of-songs-with-total-durations-divisible-by-60
#0628 maximum-product-of-three-numbers
#0552 student-attendance-record-ii
23.08 (10)
#0925 long-pressed-name
#0993 cousins-in-binary-tree
#0951 flip-equivalent-binary-trees
#0661 image-smoother
#0724 find-pivot-index
#0598 range-addition-ii
#0733 flood-fill
#0441 arranging-coins
#0434 number-of-segments-in-a-string
#0840 magic-squares-in-grid
24.08 (10)
#0537 complex-number-multiplication
#0749 daily-temperatures
#0912 sort-an-array
#1161 maximum-level-sum-of-a-binary-tree
#0797 all-paths-from-source-to-target
#0451 sort-characters-by-frequency
#1155 number-of-dice-rolls-with-target-sum
#0107 binary-tree-level-order-traversal-ii
#0506 relative-ranks
#0409 longest-palindrome
25.08 (10)
#0456 assign-cookies
#0953 verifying-an-alien-dictionary
#0205 isomorphic-strings
#0290 word-pattern
#0572 subtree-of-another-tree
#0599 minimum-index-sum-of-two-lists
#0856 score-of-parentheses
#0513 find-bottom-left-tree-value
#1143 longest-common-subsequence
#0516 longest-palindromic-subsequence
26.08 (8)
#0230 kth-smallest-element-in-a-bst
#0671 second-minimum-node-in-a-binary-tree
#0869 reordered-power-of-2
#0048 rotate-image
#0605 can-place-flowers
#0201 bitwise-and-of-numbers-range !!
#0137 single-number-ii !!
#0507 perfect-number
27.08 (0)
28.08 (0)
29.08 (25)
#0935 knight-dialer
#0688 knight-probability
#0110 balanced-binary-tree
#0707 design-linked-list
#0686 repeated-string-match
#0234 palindrome-linked-list
#1103 distribute-candies-to-people
#0669 trim-a-binary-search-tree
#0521 longest-uncommon-subsequence
#0654 maximum-binary-tree
#0716 max-stack
#1165 single-row-keyboard
#0760 find-anagram-mappings
#1134 armstrong-number
#1064 fixed-point
#1086 high-five
#1085 sum-of-digits-in-the-minimum-number
#1119 remove-vowels-from-a-string
#1133 largest-unique-number
#0346 moving-average-from-data-stream
#1150 check-if-a-number-is-majority-element-in-a-sorted-array
#0359 logger-rate-limiter
#1099 two-sum-less-than-k
#0243 shortest-word-distance
#1065 index-pairs-of-a-string
30.08 (7)
#1118 number-of-days-in-a-month
#0252 meeting-rooms
#0253 meeting-rooms-ii
#0056 merge-intervals
#0057 insert-interval
#0256 paint-house
#0246 strobogrammatic-number
31.08 (3)
#0422 valid-word-square
#1056 confusing-number
#0408 valid-word-abbreviation
-----------September-----------
01.09 (10)
#0170 two-sum-iii-data-structure-design
#0892 surface-area-of-3d-shapes
#1176 diet-plan-performance
#1175 prime-arrangements
#0348 design-tic-tac-toe
#1170 compare-strings-by-frequency-of-the-smallest-character
#0270 closest-binary-search-tree-value
#0997 find-the-town-judge
#0530 minimum-absolute-difference-in-bst
#0783 minimum-distance-between-bst-nodes/
02.09 (10)
#0401 binary-watch
#0734 sentence-similarity
#0278 first-bad-version
#0581 shortest-unsorted-continuous-subarray
#0482 license-key-formatting
#0108 convert-sorted-array-to-binary-search-tree
#0299 bulls-and-cows
#0235 lowest-common-ancestor-of-a-binary-search-tree
#0157 read-n-characters-given-read4
#0702 search-in-a-sorted-array-of-unknown-size
03.09 (10)
#1154 day-of-the-year
#0625 minimum-factorization
#0604 design-compressed-string-iterator
#0748 shortest-completing-word
#0989 add-to-array-form-of-integer
#0945 minimum-increment-to-make-array-unique
#0531 lonely-pixel-i
#0687 longest-univalue-path
#1005 maximize-sum-of-array-after-k-negations
#0414 third-maximum-number
04.09 (10)
#1029 two-city-scheduling (READ EDITORIAL !!!)
#0690 employee-importance
#1018 binary-prefix-divisible-by-5
#0437 path-sum-iii
#0538 convert-bst-to-greater-tree
#0968 check-completeness-of-a-binary-tree
#0813 binary-tree-pruning
#0124 binary-tree-maximum-path-sum
#0129 sum-root-to-leaf-numbers
#0988 smallest-string-starting-from-leaf
05.09 (0)
06.09 (10)
#0443 string-compression
#0271 encode-and-decode-strings
#0696 count-binary-substrings
#0276 paint-fence
#0225 implement-stack-using-queues
#0475 heaters
#0658 find-k-closest-elements
#0563 binary-tree-tilt
#0459 repeated-substring-pattern
#0539 minimum-time-difference
07.09 (10)
#1180 count-substrings-with-only-one-distinct-letter
#0921 minimum-add-to-make-parentheses-valid
#1100 find-k-length-substrings-with-no-repeated-characters
#1160 missing-element-in-sorted-array
#1011 capacity-to-ship-packages-within-d-days
#0494 target-sum
#0325 maximum-size-subarray-sum-equals-k
#0731 subarray-product-less-than-k
#0152 maximum-product-subarray
#0163 missing-ranges
08.09 (0)
09.09 (0)
10.09 (0)
11.09 (0)
12.09 (0)
13.09 (0)
14.09 (0)
15.09 (0)
16.09 (0)
17.09 (0)
18.09 (1)
#1189 maximum-number-of-balloons
19.09 (0)
20.09 (0)
21.09 (0)
22.09 (0)
23.09 (0)
24.09 (4)
#1200 minimum-absolute-difference
#1196 how-many-apples-can-you-put-into-the-basket
#1184 distance-between-bus-stops
25.09 (6)
#0362 design-hit-counter
#0462 minimum-moves-to-equal-array-elements-ii
#0323 number-of-connected-components-in-an-undirected-graph
#0261 graph-valid-tree
#0207 course-schedule
#0210 course-schedule-ii
26.09 (0)
27.09 (0)
28.09 (3)
#0833 find-and-replace-in-string
#0159 longest-substring-with-at-most-two-distinct-characters
#0340 longest-substring-with-at-most-k-distinct-characters
29.09 (0)
30.09 (8)
#1207 unique-number-of-occurrences
#0274 h-index
#0419 battleships-in-a-board
#0791 custom-sort-string
#0967 numbers-with-same-consecutive-differences
#0319 bulb-switcher
#0072 edit-distance
#0583 delete-operation-for-two-strings
-------------October-----------
01.10 (0)
02.10 (0)
03.10 (0)
04.10 (0)
05.10 (4)
#1213 intersection-of-three-sorted-arrays
#1214 two-sum-bsts
#1215 stepping-numbers
#1216 valid-palindrome-iii
06.10 (2)
#1217 play-with-chips
#0141 linked-list-cycle
07.10 (0)
08.10 (0)
09.10 (0)
10.10 (0)
11.10 (0)
12.10 (2)
#0023 merge-k-sorted-lists
#0438 find-all-anagrams-in-a-string
13.10 (2)
#0239 sliding-window-maximum
#0128 longest-consecutive-sequence
14.10 (0)
15.10 (0)
16.10
#0826 most-profit-assigning-work