The Perfermance
is unstable most of time, it depends on leetcode benchmark server status, so I take the highest beats percentile
among 3 times submittion.
Progress: 109/3173
Easy | Medium | Hard |
---|---|---|
53 | 49 | 7 |
ID | Question | Solution | Performance |
---|---|---|---|
1 | [E] two-sum | Link | runtime beats 94.34% (4 ms) memory beats 30.01% (14 MB) |
3 | [M] longest-substring-without-repeating-characters | Link | runtime beats 95.82% (3 ms) memory beats 98.08% (9 MB) |
4 | [H] median-of-two-sorted-arrays | Link | runtime beats 69.48% (23 ms) memory beats 74.36% (94.4 MB) |
7 | [M] reverse-integer | Link | runtime beats 100.00% (0 ms) memory beats 52.21% (7.4 MB) |
8 | [M] string-to-integer-atoi | Link | runtime beats 100.00% (0 ms) memory beats 21.85% (8.4 MB) |
9 | [E] palindrome-number | Link | runtime beats 34.10% (12 ms) memory beats 5.79% (10.8 MB) |
10 | [H] regular-expression-matching | Link | runtime beats 69.08% (3 ms) memory beats 63.95% (8.1 MB) |
14 | [E] longest-common-prefix | Link | runtime beats 100.00% (0 ms) memory beats 89.72% (10.7 MB) |
19 | [M] remove-nth-node-from-end-of-list | Link | runtime beats 100.00% (0 ms) memory beats 62.66% (13.3 MB) |
20 | [E] valid-parentheses | Link | runtime beats 100.00% (0 ms) memory beats 32.25% (7.6 MB) |
22 | [M] generate-parentheses | Link | runtime beats 100.00% (0 ms) memory beats 76.40% (12.8 MB) |
23 | [H] merge-k-sorted-lists | Link | runtime beats 90.01% (11 ms) memory beats 86.17% (16.8 MB) |
27 | [E] remove-element | Link | runtime beats 100.00% (0 ms) memory beats 40.17% (10.5 MB) |
32 | [H] longest-valid-parentheses | Link | runtime beats 73.20% (3 ms) memory beats 65.83% (8.7 MB) |
35 | [E] search-insert-position | Link | runtime beats 100.00% (0 ms) memory beats 45.24% (12 MB) |
41 | [H] first-missing-positive | Link | runtime beats 75.50% (52 ms) memory beats 73.98% (53.4 MB) |
43 | [M] multiply-strings | Link | runtime beats 20.20% (13 ms) memory beats 20.41% (12.3 MB) |
49 | [M] group-anagrams | Link | runtime beats 99.96% (8 ms) memory beats 63.40% (24.3 MB) |
53 | [M] maximum-subarray | Link | runtime beats 89.06% (68 ms) memory beats 92.70% (70.1 MB) |
56 | [M] merge-intervals | Link | runtime beats 40.23% (26 ms) memory beats 89.25% (22.6 MB) |
57 | [M] insert-interval | Link | runtime beats 51.57% (12 ms) memory beats 15.23% (21 MB) |
58 | [E] length-of-last-word | Link | runtime beats 100.00% (0 ms) memory beats 86.97% (7.6 MB) |
61 | [M] rotate-list | Link | runtime beats 100.00% (0 ms) memory beats 68.32% (15.1 MB) |
62 | [M] unique-paths | Link | runtime beats 42.08% (2 ms) memory beats 99.29% (7 MB) |
63 | [M] unique-paths-ii | Link | runtime beats 60.29% (2 ms) memory beats 88.65% (10 MB) |
64 | [M] minimum-path-sum | Link | runtime beats 94.81% (3 ms) memory beats 98.77% (11.9 MB) |
66 | [E] plus-one | Link | runtime beats 100.00% (0 ms) memory beats 54.42% (10.2 MB) |
67 | [E] add-binary | Link | runtime beats 100.00% (0 ms) memory beats 36.92% (8.8 MB) |
70 | [E] climbing-stairs | Link | runtime beats 100.00% (0 ms) memory beats 86.13% (7 MB) |
72 | [M] edit-distance | Link | runtime beats 100.00% (0 ms) memory beats 90.52% (9.7 MB) |
77 | [M] combinations | Link | runtime beats 92.19% (78 ms) memory beats 80.58% (61.8 MB) |
78 | [M] subsets | Link | runtime beats 100.00% (0 ms) memory beats 78.03% (8.3 MB) |
83 | [E] remove-duplicates-from-sorted-list | Link | runtime beats 83.44% (4 ms) memory beats 55.71% (15.2 MB) |
88 | [E] merge-sorted-array | Link | runtime beats 100.00% (0 ms) memory beats 94.89% (10.9 MB) |
91 | [M] decode-ways | Link | runtime beats 100.00% (0 ms) memory beats 96.72% (7.4 MB) |
93 | [M] restore-ip-addresses | Link | runtime beats 100.00% (0 ms) memory beats 82.05% (9.4 MB) |
94 | [E] binary-tree-inorder-traversal | Link | runtime beats 100.00% (0 ms) memory beats 40.42% (9.8 MB) |
98 | [M] validate-binary-search-tree | Link | runtime beats 55.90% (8 ms) memory beats 15.32% (20.3 MB) |
100 | [E] same-tree | Link | runtime beats 100.00% (0 ms) memory beats 79.67% (11.7 MB) |
104 | [E] maximum-depth-of-binary-tree | Link | runtime beats 40.65% (8 ms) memory beats 80.12% (17.4 MB) |
112 | [E] path-sum | Link | runtime beats 70.72% (7 ms) memory beats 86.88% (19.6 MB) |
113 | [M] path-sum-ii | Link | runtime beats 90.14% (4 ms) memory beats 60.72% (18.8 MB) |
114 | [M] flatten-binary-tree-to-linked-list | Link | runtime beats 100.00% (0 ms) memory beats 86.91% (15.6 MB) |
120 | [M] triangle | Link | runtime beats 84.31% (3 ms) memory beats 99.74% (10.8 MB) |
121 | [E] best-time-to-buy-and-sell-stock | Link | runtime beats 86.92% (77 ms) memory beats 93.73% (95.7 MB) |
122 | [M] best-time-to-buy-and-sell-stock-ii | Link | runtime beats 100.00% (0 ms) memory beats 91.88% (15.4 MB) |
125 | [E] valid-palindrome | Link | runtime beats 80.06% (4 ms) memory beats 83.21% (8.6 MB) |
128 | [M] longest-consecutive-sequence | Link | runtime beats 63.44% (119 ms) memory beats 47.80% (74.1 MB) |
136 | [E] single-number | Link | runtime beats 67.03% (12 ms) memory beats 98.65% (19.1 MB) |
144 | [E] binary-tree-preorder-traversal | Link | runtime beats 100.00% (0 ms) memory beats 48.02% (9.8 MB) |
145 | [E] binary-tree-postorder-traversal | Link | runtime beats 100.00% (0 ms) memory beats 97.90% (9.7 MB) |
146 | [M] lru-cache | Link | runtime beats 37.75% (364 ms) memory beats 72.99% (168.8 MB) |
148 | [M] sort-list | Link | runtime beats 29.03% (144 ms) memory beats 47.38% (73.3 MB) |
151 | [M] reverse-words-in-a-string | Link | runtime beats 100.00% (0 ms) memory beats 77.98% (8.5 MB) |
165 | [M] compare-version-numbers | Link | runtime beats 70.39% (33 ms) memory beats 99.93% (16.3 MB) |
169 | [E] majority-element | Link | runtime beats 89.42% (12 ms) memory beats 90.90% (26.5 MB) |
179 | [M] largest-number | Link | runtime beats 83.24% (36 ms) memory beats 72.66% (16.5 MB) |
190 | [E] reverse-bits | Link | runtime beats 100.00% (0 ms) memory beats 92.54% (6.9 MB) |
191 | [E] number-of-1-bits | Link | runtime beats 100.00% (0 ms) memory beats 93.64% (7.2 MB) |
203 | [E] remove-linked-list-elements | Link | runtime beats 85.72% (11 ms) memory beats 87.77% (18.5 MB) |
208 | [M] implement-trie-prefix-tree | Link | runtime beats 99.00% (31 ms) memory beats 79.97% (48 MB) |
209 | [M] minimum-size-subarray-sum | Link | runtime beats 94.06% (19 ms) memory beats 57.36% (30.5 MB) |
215 | [M] kth-largest-element-in-an-array | Link | runtime beats 76.70% (85 ms) memory beats 46.08% (61.1 MB) |
224 | [H] basic-calculator | Link | runtime beats 78.27% (6 ms) memory beats 29.20% (10.2 MB) |
227 | [M] basic-calculator-ii | Link | runtime beats 39.76% (22 ms) memory beats 76.08% (11.9 MB) |
231 | [E] power-of-two | Link | runtime beats 100.00% (0 ms) memory beats 77.01% (7.1 MB) |
242 | [E] valid-anagram | Link | runtime beats 98.57% (2 ms) memory beats 83.36% (8.5 MB) |
257 | [E] binary-tree-paths | Link | runtime beats 100.00% (0 ms) memory beats 99.54% (14.5 MB) |
258 | [E] add-digits | Link | runtime beats 100.00% (0 ms) memory beats 89.33% (7.3 MB) |
268 | [E] missing-number | Link | runtime beats 96.64% (7 ms) memory beats 84.92% (20.3 MB) |
283 | [E] move-zeroes | Link | runtime beats 98.60% (7 ms) memory beats 73.80% (21.6 MB) |
290 | [E] word-pattern | Link | runtime beats 100.00% (0 ms) memory beats 42.12% (7.8 MB) |
292 | [E] nim-game | Link | runtime beats 100.00% (0 ms) memory beats 52.20% (7 MB) |
295 | [H] find-median-from-data-stream | Link | runtime beats 87.91% (252 ms) memory beats 81.88% (121.7 MB) |
326 | [E] power-of-three | Link | runtime beats 98.16% (3 ms) memory beats 75.95% (8.2 MB) |
338 | [E] counting-bits | Link | runtime beats 71.89% (3 ms) memory beats 25.27% (9.6 MB) |
344 | [E] reverse-string | Link | runtime beats 99.39% (6 ms) memory beats 89.96% (26.9 MB) |
345 | [E] reverse-vowels-of-a-string | Link | runtime beats 81.07% (4 ms) memory beats 80.43% (9 MB) |
367 | [E] valid-perfect-square | Link | runtime beats 100.00% (0 ms) memory beats 13.70% (7.1 MB) |
387 | [E] first-unique-character-in-a-string | Link | runtime beats 84.54% (22 ms) memory beats 62.21% (12.8 MB) |
392 | [E] is-subsequence | Link | runtime beats 100.00% (0 ms) memory beats 69.23% (7.4 MB) |
393 | [M] utf-8-validation | Link | runtime beats 97.47% (3 ms) memory beats 94.38% (16.3 MB) |
394 | [M] decode-string | Link | runtime beats 100.00% (0 ms) memory beats 88.37% (7.5 MB) |
395 | [M] longest-substring-with-at-least-k-repeating-characters | Link | runtime beats 34.67% (76 ms) memory beats 98.52% (7.4 MB) |
397 | [M] integer-replacement | Link | runtime beats 100.00% (0 ms) memory beats 79.84% (7 MB) |
400 | [M] nth-digit | Link | runtime beats 100.00% (0 ms) memory beats 41.07% (7.2 MB) |
415 | [E] add-strings | Link | runtime beats 68.69% (3 ms) memory beats 51.93% (8.6 MB) |
443 | [M] string-compression | Link | runtime beats 63.42% (4 ms) memory beats 87.64% (12.5 MB) |
449 | [M] serialize-and-deserialize-bst | Link | runtime beats 29.89% (29 ms) memory beats 20.11% (34.6 MB) |
453 | [M] minimum-moves-to-equal-array-elements | Link | runtime beats 56.34% (28 ms) memory beats 65.54% (30.7 MB) |
468 | [M] validate-ip-address | Link | runtime beats 100.00% (0 ms) memory beats 94.09% (7.4 MB) |
504 | [E] base-7 | Link | runtime beats 100.00% (0 ms) memory beats 79.24% (7.2 MB) |
508 | [M] most-frequent-subtree-sum | Link | runtime beats 98.99% (4 ms) memory beats 60.77% (23.9 MB) |
509 | [E] fibonacci-number | Link | runtime beats 100.00% (0 ms) memory beats 94.79% (6.9 MB) |
520 | [E] detect-capital | Link | runtime beats 100.00% (0 ms) memory beats 28.94% (7.6 MB) |
541 | [E] reverse-string-ii | Link | runtime beats 87.09% (3 ms) memory beats 7.72% (9.2 MB) |
589 | [E] n-ary-tree-preorder-traversal | Link | runtime beats 64.78% (12 ms) memory beats 57.68% (15 MB) |
678 | [M] valid-parenthesis-string | Link | runtime beats 46.91% (3 ms) memory beats 47.30% (7.3 MB) |
926 | [M] flip-string-to-monotone-increasing | Link | runtime beats 96.22% (18 ms) memory beats 79.36% (12.2 MB) |
929 | [E] unique-email-addresses | Link | runtime beats 39.87% (24 ms) memory beats 6.50% (24.9 MB) |
1247 | [M] minimum-swaps-to-make-strings-equal | Link | runtime beats 100.00% (0 ms) memory beats 40.35% (7.5 MB) |
1248 | [M] count-number-of-nice-subarrays | Link | runtime beats 47.09% (98 ms) memory beats 30.30% (71.9 MB) |
1313 | [E] decompress-run-length-encoded-list | Link | runtime beats 71.53% (2 ms) memory beats 92.30% (11.5 MB) |
2068 | [E] check-whether-two-strings-are-almost-equivalent | Link | runtime beats 100.00% (0 ms) memory beats 99.72% (7.5 MB) |
2109 | [M] adding-spaces-to-a-string | Link | runtime beats 87.26% (127 ms) memory beats 97.58% (80.1 MB) |
2784 | [E] check-if-array-is-good | Link | runtime beats 59.57% (5 ms) memory beats 96.37% (25.5 MB) |
2784 | [E] check-if-array-is-good | Link | runtime beats 59.57% (5 ms) memory beats 96.37% (25.5 MB) |
3131 | [E] find-the-integer-added-to-array-i | Link | runtime beats 83.09% (4 ms) memory beats 83.16% (34 MB) |
3136 | [E] valid-word | Link | runtime beats 100.00% (0 ms) memory beats 27.45% (7.7 MB) |