Starting 12/06/2017, a diary for solving LeetCode problems.
2018/1/16 strategy change, focus on the 1-400; round 1
2018/4/9 finished round 1 with python, skipped some problems, such as tricky dp or indiced tree etc and the paid problems.
2018/4/10 round 2 with java.
LC contests | Week | rank | result |
---|---|---|---|
24 | 8/11/2018 | 667 / 3760 | 2/4; 8/22 |
23 | 8/04/2018 | 563 / 4703 | 2/4; 9/22 |
22 | 7/28/2018 | 1155 / 4580 | 2/4; 8/22 |
21 | 7/21/2018 | 547 / 4542 | 2/4; 10/20 |
20 | 7/14/2018 | 687 / 4912 | 3/4; 15/24 |
19 | 7/07/2018 | 445 / 3650 | 2/4; 7/23 |
18 | 6/30/2018 | 493 / 3650 | 2/4; 8/25 |
17 | 6/23/2018 | 409 / 4410 | 3/4; 15/24 |
16 | 6/16/2018 | 420 / 3646 | 2/4; 8/24 |
15 | 6/09/2018 | 571 / 3407 | 2/4; 8/21 |
14 | 6/02/2018 | 356 / 3029 | 3/4; 13/21 |
13 | 5/26/2018 | 1031 / 2697 | 1/4; 5/22 |
12 | 5/19/2018 | 287 / 2997 | 2/4; 9/26 |
11 | 5/12/2018 | 605 / 3076 | 2/4; 7/22 |
10 | 5/05/2018 | 275 / 2743 | 3/4; 15/24 |
9 | 4/28/2018 | 332 / 2563 | 3/4; 16/24 |
8 | 4/21/2018 | 341 / 2797 | 3/4; 15/22 |
7 | 4/14/2018 | 132 / 2570 | 3/4; 14/22 |
6 | 4/07/2018 | 161 / 2485 | 3/4; 16/22 |
5 | 3/31/2018 | 894 / 3074 | 1/4; 5/26 |
4 | 3/24/2018 | 460 / 2982 | 3/4; 13/22 |
3 | 3/17/2018 | 414 / 2849 | 1/4; 4/28 |
2 | 3/10/2018 | 516 / 2830 | 2/4; 8/22 |
1 | 3/03/2018 | 490 / 2674 | 2/4; 14/28 |
25 | 8/18/2018 | 387 / 3552 | 3/4; 13/20 |
26 | 8/25/2018 | 534 / 3877 | 3/4; 14/20 |
27 | 9/01/2018 | 1165/ 4008 | 2/4; 5/18 |
28 | 9/08/2018 | 413/ 4937 | 2/4; 8/24 |
29 | 9/15/2018 | 349/ 4385 | 3/4; 13/20 |
30 | 9/22/2018 | 361/ 4160 | 2/4; 9/21 |
31 | 9/29/2018 | 335/ 3579 | 3/4; 14/22 |
32 | 10/06/2018 | 1387/ 3528 | 1/4; 4/25 |
33 | 10/13/2018 | 1251/ 3068 | 2/4; 7/20 |
34 | 10/20/2018 | 462/ 3711 | 3/4; 17/25 |
35 | 10/27/2018 | 582/ 3652 | 3/4; 14/20 |
36 | 11/03/2018 | 1056/2948 | 1/4; 4/23 |
37 | 11/10/2018 | 798/ 3720 | 3/4; 13/20 |
38 | 11/17/2018 | 256/ 3587 | 3/4; 12/20 |
39 | 11/24/2018 | 636/ 3194 | 3/4; 17/23 |
40 | 12/01/2018 | 269/ 3549 | 3/4; 14/22 |
41 | 12/08/2018 | 303/ 3198 | 3/4; 15/23 |
42 | 12/15/2018 | 252/ 3055 | 2/4; 12/25 |
43 | 12/22/2018 | 278/ 2965 | 3/4; 12/21 |
44 | 12/29/2018 | 430/ 3425 | 3/4; 14/22 |
Round 2 stack:
can do:
-
12/29 Â *****
Rank Name Score Finish Time Q1 (3) Q2 (5) Q3 (6) Q4 (8)
430 / 3425 abigcleverdog 14 1:14:11 0:06:23 0:31:37 2 1:04:11 -
12/22 Â *****
Rank Name Score Finish Time Q1 (2) Q2 (5) Q3 (5) Q4 (9)
278 / 2965 abigcleverdog 12 1:40:21 0:10:50 1 0:28:20 1:20:21 3 -
12/15 Â *****
Rank Name Score Finish Time Q1 (5) Q2 (6) Q3 (7) Q4 (7)
252 / 3055 abigcleverdog 12 1:37:14 0:19:23 1 1:27:14 1
- 12/09 *****
rp: 316
jp: 316
- 12/08 Â *****
Rank Name Score Finish Time Q1 (4) Q2 (5) Q3 (6) Q4 (8)
302 / 3198 abigcleverdog 15 1:15:53 0:12:01 0:35:33 1:05:53 2
- 12/01 Â *****
Rank Name Score Finish Time Q1 (4) Q2 (5) Q3 (5) Q4 (8)
269 / 3549 abigcleverdog 14 0:42:21 0:22:54 0:27:17 0:42:21
- 11/24 Â *****
Rank Name Score Finish Time Q1 (5) Q2 (6) Q3 (6) Q4 (6)
636 / 3194 abigcleverdog 17 1:38:39 0:08:24 0:42:34 2 1:28:39
- 11/25 *****
rp: 279
jp: 307
- 11/17 Â *****
Rank Name Score Finish Time Q1 (3) Q2 (4) Q3 (5) Q4 (8)
256 / 3587 abigcleverdog 12 0:23:52 0:07:01 0:17:25 0:23:52
- 11/11 *****
rp: 264
jp: 307
- 11/10 Â *****
Rank Name Score Finish Time Q1 (4) Q2 (4) Q3 (5) Q4 (7)
798 / 3720 abigcleverdog 13 1:35:41 0:19:42 0:27:36 1:25:41 2
- 11/03 *****
Rank Name Score Finish Time Q1 (4) Q2 (5) Q3 (6) Q4 (8)
1056 / 2948 abigcleverdog 4 0:04:47 0:04:47
- 11/02 Â *****
rp: 264
jp: 264
- 10/27 *****
Rank Name Score Finish Time Q1 (4) Q2 (5) Q3 (5) Q4 (6)
582 / 3652 abigcleverdog 14 1:01:15 0:11:32 0:47:35 1 0:56:15
- 10/26 Â *****
rp: 222
jp: 264
- 10/25 *****
rp: 216
jp: 264
- 10/20 *****
Rank Name Score Finish Time Q1 (4) Q2 (5) Q3 (8) Q4 (8)
462 / 3711 abigcleverdog 17 1:36:23 0:09:20 1 0:19:39 1:16:23 3
- 10/16 Â *****
rp: 216
jp: 216
- 10/13 *****
Rank Name Score Finish Time Q1 (3) Q2 (4) Q3 (6) Q4 (7)
1251 / 3068 abigcleverdog 7 0:16:24 0:11:41 0:16:24
- 10/06 *****
Rank Name Score Finish Time Q1 (4) Q2 (6) Q3 (7) Q4 (8)
1387 / 3528 abigcleverdog 4 0:08:56 0:08:56
- 9/29 *****
Rank Name Score Finish Time Q1 (3) Q2 (5) Q3 (6) Q4 (8)
335 / 3579 abigcleverdog 14 0:46:25 0:27:15 1 0:08:31 0:41:25
- 9/22 *****
Rank Name Score Finish Time Q1 (3) Q2 (6) Q3 (6) Q4 (6)
361 / 4160 abigcleverdog 9 1:04:03 0:07:12 0:59:03 1
- 7/17 Â *****
rp: 150
jp: 216
- 9/15 *****
Rank Name Score Finish Time Q1 (2) Q2 (5) Q3 (6) Q4 (7)
349 / 4385 abigcleverdog 13 1:25:27 0:07:12 0:43:30 1 1:15:27 1
- 9/8 *****
Rank Name Score Finish Time Q1 (4) Q2 (4) Q3 (7) Q4 (9)
413 / 4937 abigcleverdog 8 0:35:14 0:35:14 0:23:59
- 9/1 Â *****
Rank Name Score Finish Time Q1 (2) Q2 (3) Q3 (6) Q4 (7)
1165 / 4008 abigcleverdog 5 0:39:54 0:10:03 0:34:54 1
- 8/25 Â *****
Rank Name Score Finish Time Q1 (4) Q2 (4) Q3 (6) Q4 (8)
534 / 3877 abigcleverdog 14 1:24:58 0:18:20 1:19:58 1 0:56:38
- 8/18 Â *****
Rank Name Score Finish Time Q1 (3) Q2 (5) Q3 (5) Q4 (7)
387 / 3552 abigcleverdog 13 0:52:51 0:19:40 0:31:25 0:52:51
- 8/11 Â *****
Rank Name Score Finish Time Q1 (3) Q2 (5) Q3 (5) Q4 (9)
667 / 3760 abigcleverdog 8 0:45:19 0:10:50 0:45:19
- 8/7 Â *****
rp: 150
jp: 150
- 8/6 Â *****
rp: 144
jp: 150
- 8/4 Â *****
Rank Name Score Finish Time Q1 (4) Q2 (5) Q3 (6) Q4 (7)
563 / 4703 abigcleverdog 9 0:27:22 0:20:12 0:27:22
- 8/1 Â *****
rp: 130
jp: 150
- 7/31 Â *****
rp: 125
jp: 150
- 7/29 Â *****
rp: 120
jp: 150
- 7/28 Â *****
Rank Name Score Finish Time Q1 (3) Q2 (5) Q3 (7) Q4 (7)
1155 / 4580 abigcleverdog 8 1:10:12 0:03:09 1:05:12 1
- 7/27 Â *****
rp: 100
jp: 148
- 7/26 Â *****
rp: 100
jp: 142
- 7/25 Â *****
rp: 100
jp: 133
- 7/24 Â *****
rp: 100
jp: 130
- 7/21 Â *****
Rank Name Score Finish Time Q1 (4) Q2 (4) Q3 (6) Q4 (6)
547 / 4542 abigcleverdog 10 0:49:14 0:18:36 0:49:14
- 7/16 Â *****
rp: 100
jp: 128
- 7/16 Â *****
rp: 100
jp: 125 Â
- 7/14 Â *****
Rank Name Score Finish Time Q1 (3) Q2 (5) Q3 (7) Q4 (9)
687 / 4912 abigcleverdog 15 1:20:56 0:10:21 0:34:57 1:05:56 3
- 7/13 Â *****
rp: 100
jp: 123 Â
- 7/12 Â *****
rp: 100
jp: 113 Â
- 7/11 Â *****
rp: 100
jp: 105 Â
- 7/10 Â *****
rp: 99
jp: 100 Â
- 7/8 Â *****
rp: 90
jp: 100 Â
- 7/7 Â *****
Rank Name Score Finish Time Q1 (2) Q2 (5) Q3 (7) Q4 (9)
445 / 4508 abigcleverdog 7 0:14:55 0:04:13 0:14:55
- 7/6 Â *****
rp: 86
jp: 100 Â
- 7/5 Â *****
rp: 83
jp: 100 Â
- 7/1 Â *****
rp: 77
jp: 100 Â
- 6/30 Â *****
Rank Name Score Finish Time Q1 (2) Q2 (6) Q3 (6) Q4 (11)
493 / 3650 abigcleverdog 8 0:34:54 0:08:29 0:34:54
- 6/27 Â *****
rp: 68
jp: 100 Â
- 6/26 Â *****
rp: 64
jp: 100 Â
- 6/25 Â *****
rp: 57
jp: 100 Â
- 6/23 Â *****
Rank Name Score Finish Time Q1 (4) Q2 (5) Q3 (6) Q4 (9)
409 / 4410 abigcleverdog 15 1:47:12 0:13:11 2 0:21:43 1 1:12:12 4
- 6/18 Â *****
rp: 50
jp: 98 Â
- 6/16 Â *****
Rank Name Score Finish Time Q1 (2) Q2 (6) Q3 (6) Q4 (10)
420 / 3646 abigcleverdog 8 0:44:21 0:09:47 0:39:21 1
- 6/11 Â *****
rp: 50
jp: 91 Â
- 6/9 Â *****
Rank Name Score Finish Time Q1 (4) Q2 (4) Q3 (5) Q4 (8)
571 / 3407 abigcleverdog 8 0:28:30 0:14:44 0:28:30
- 6/7 Â *****
rp: 50
jp: 86 Â
- 6/2 Â *****
Rank Name Score Finish Time Q1 (3) Q2 (5) Q3 (5) Q4 (8)
356 / 3029 abigcleverdog 13 0:58:20 0:12:52 1 0:19:30 2 0:43:20
- 5/26 Â ***** computer crushed :(
Rank Name Score Finish Time Q1 (3) Q2 (5) Q3 (6) Q4 (8)
1031 / 2697 abigcleverdog 5 0:38:37 0:38:37
- 5/25 Â *****
rp: 50
jp: 75 Â
- 5/24 Â *****
rp: 50
jp: 72 Â
- 5/23 Â *****
rp: 50
jp: 67 Â
- 5/22 Â *****
rp: 50
jp: 62 Â
- 5/19 Â *****
Rank Name Score Finish Time Q1 (3) Q2 (6) Q3 (7) Q4 (10) 287 / 2997 abigcleverdog 9 0:40:16 0:07:31 0:35:16 1
- 5/18 Â *****
rp: 50
jp: 55 Â
- 5/17 *****
rp: 50
jp: 53
- 5/15 *****
rp: 50
jp: 51
- 5/12 *****
Rank Name Score Finish Time Q1 (3) Q2 (4) Q3 (6) Q4 (9)
602 / 3076 abigcleverdog 7 0:47:02 0:06:29 0:47:02
- 5/10 *****
rp: 47
jp: 50
- 5/9 *****
rp: 43
jp: 50
- 5/8 *****
rp: 36
jp: 50
- 5/7 *****
rp: 34
jp: 50
- 5/6 *****
for problem 30. stucked at the two pointers. the problem was == vs. .equals; when I built the String[] for two pointers, the Strings in the array are objects so "foo" @ idx 2 != "foo" @ idx 3, but "foo"@2 .equals "foo"@3
rp: 30
jp: 50
- 5/5 *****
Rank Name Score Finish Time Q1 (3) Q2 (5) Q3 (7) Q4 (9)
275 / 2743 abigcleverdog 15 0:54:46 0:09:59 1 0:49:46 0:30:00
- 5/4 *****
rp: 28
jp: 50
- 5/3 *****
rp: 22
jp: 50
- 5/2 *****
print simple array: Arrays.toString(arr);
print nested array: Arrays.deepToString(arr); rp: 17
jp: 50
- 5/1 *****
rp: 6
jp: 50
- 4/30 *****
int to String:
int i = 1;
- i + ""; --> "1"
- String.valueOf(i); --> "1"
- Integer.toString(i); --> "1"
Integer i = 1;
- i.toString(); --> "1" * be careful of nullpointerexception
- String.valueOf(i); "1" * will be "null" if i is null
String to int:
String s = "1";
- Integer.valueOf(s); --> 1 * boxed integer object Â
- Integer.parseInt(s); --> 1 * primative int
Integer auto cache: -128 ~ 127
rp: 3
jp: 50
- 4/29 *****
rp: 41
jp: 50
- 4/28 *****
Rank Name Score Finish Time Q1 (4) Q2 (5) Q3 (7) Q4 (8)
332 / 2563 abigcleverdog 16 1:24:12 0:08:34 1:14:12 2 1:00:15
rp: 41
jp: 45
- 4/27 *****
rp: 41
jp: 43
- 4/26 *****
convert an int to string: int.toString() doesn't work as int is a primative type, not an object, so no method associates with it; have to do Integer.toString(int), Integer is an object.
int + char1 will return a char2 whose ascii is greater than char1 by int
an obj i.e. TreeNode can be compared to another TreeNode when we implement the comparable interface; however we can compare two TreeNode references if they are pointing to the same TreeNode (TreeNode a == TreeNode b).
rp: 41
jp: 41
- 4/25 *****
notated someone's 37 Sudoku Solver 2ms solution
rp: 37
jp: 41
- 4/24 *****
PriorityQueue offer, peek, poll; Comparable vs. Comparator.
Deque for Stack; push(e), pop(), peek() (throw exceptions)
rp: 35
jp: 41
- 4/23 *****
1<<31 = -2147483648 (*return an int); 1L<<31 or (long) 1<<31 = 2147483648 (*return a long)
Arrays.toString(arr) or Arrays.deepToString(arr) for arrays within arrays.
rp: 33
jp: 41
- 4/21 ***** Rank Name Score Finish Time Q1 (4) Q2 (5) Q3 (6) Q4 (7) 340 / 2797 abigcleverdog 15 0:43:28 0:43:28 0:29:10 0:17:41
- 4/19 ***** rp: 20 jp: 41
- 4/16 ***** rp: 20 jp:
- 4/14 ***** Rank Name Score Finish Time Q1 (4) Q2 (4) Q3 (6) Q4 (8) 132 / 2570 abigcleverdog 14 0:48:37 0:12:04 0:20:49 1 0:43:37
- 4/13 ***** it has been a little messy. so I guess just check in the progress daily for now. review progress: 20; java progress: 29
- 4/11 (6, 338) ***** 6, 7, 8, 9, 10, 11, 12 13 Roman to Integer
- 4/10 (6, 338) ***** 1, 2, 3, 5, 6
- 4/9 (6, 338) *****
- 394 Decode String
- 395 Longest Substring with At Least K Repeating Characters
- 396 Rotate Function
- 397 Integer Replacement
- 398 Random Pick Index
- 399 Evaluate Division
- 4/8 (2, 332) *****
- 392 Is Subsequence
- 393 UTF-8 Validation
- 4/7 (2, 330) ***** Rank Name Score Finish Time Q1 (4) Q2 (5) Q3 (6) Q4 (7) 161 / 2485 abigcleverdog 16 1:10:16 0:49:07 0:18:16 1:10:16
- 390 Elimination Game
- 391 Perfect Rectangle
- 4/6 (6, 328) *****
- 378 Kth Smallest Element in a Sorted Matrix
- 380 Insert Delete GetRandom O(1)
- 381 Insert Delete GetRandom O(1) - Duplicates allowed
- 385 Mini Parser
- 386 Lexicographical Numbers
- 388 Longest Absolute File Path
- 4/5 (5, 322) *****
- 372 Super Pow
- 373 Find K Pairs with Smallest Sums
- 375 Guess Number Higher or Lower II
- 376 Wiggle Subsequence
- 377 Combination Sum IV
- 4/4 (3, 317) *****
- 363 Max Sum of Rectangle No Larger Than K -- not done
- 365 Water and Jug Problem
- 368 Largest Divisible Subset
- 4/3 (6, 314) *****
- 341 Flatten Nested List Iterator
- 343 Integer Break
- 352 Data Stream as Disjoint Intervals
- 354 Russian Doll Envelopes
- 355 Design Twitter
- 357 Count Numbers with Unique Digits
- 4/2 (3, 308) *****
- 335 Self Crossing
- 336 Palindrome Pairs
- 337 House Robber III
- 3/31 (0, 305) ***** Rank Name Score Finish Time Q1 (5) Q2 (5) Q3 (7) Q4 (9) 894 / 3074 abigcleverdog 5 0:21:28 0:21:28
- 3/24 (0, 305) ***** Rank Name Score Finish Time Q1 (4) Q2 (4) Q3 (5) Q4 (9) 460 / 2982 abigcleverdog 13 0:28:36 0:10:05 0:14:51 0:28:36
- 3/23 (3, 305) *****
- 331 Verify Preorder Serialization of a Binary Tree
- 332 Reconstruct Itinerary
- 334 Increasing Triplet Subsequence
- 3/22 (3, 305) *****
- 327 Count Range Sum -- not done
- 328 Odd Even Linked List
- 329 Longest Increasing Path in a Matrix
- 330 Patching Array
- 3/21 (4, 302) *****
- 316 Remove Duplicate Letters -- not done
- 318 Maximum Product of Word Lengths
- 319 Bulb Switcher
- 321 Create Maximum Number -- not done
- 322 Coin Change
- 324 Wiggle Sort II
- 3/20 (1, 298) *****
- 312 Burst Balloons -- not done
- 313 Super Ugly Number
- 315 Count of Smaller numbers After Self -- not done
- 3/19 (1, 297) *****
- 3/18 (1, 296) *****
- 309 Best Time to Buy and Sell Stock with Cooldown -- not done
- 3/17 (3, 296) *****
- 304 Range Sum Query 2D - Immutable
- 306 Additive Number
- 307 Range Sum Query - Mutable -- not done Rank Name Score Finish Time Q1 (4) Q2 (6) Q3 (7) Q4 (11) 414 / 2849 abigcleverdog 4 0:29:40 0:24:40 1
- 3/16 (4, 294) *****
- 297 Serialize and Deserialize Binary Tree
- 299 Bulls and Cows
- 300 Longest Increasing Subsequence
- 301 Remove Invalid Parentheses
- 3/15 (4, 290) *****
- 284 Peeking Iterator
- 287 Find the Duplicate Number
- 289 Game of Life
- 295 Find Median from Data Stream
- 3/15 (0, 286) *****
- 284 Peeking Iterator
- 3/14 (1, 286) *****
- 3/13 (1, 285) *****
- 279 Perfect Squares
- 3/12 (1, 284) *****
- 275 H-Index II
- 3/10 (1, 283) *****
- 274 H-Index
Rank Name Score Finish Time Q1 (3) Q2 (5) Q3 (7) Q4 (7) 516 / 2830 abigcleverdog 8 0:16:06 0:05:01 0:16:06
- 3/9 (1, 282) *****
- 264 Ugly Number II
- 3/8 (2, 281) *****
- 3/7 (2, 279) *****
- 3/4 (3, 277) *****
- 228 Contains Duplicate III
- 229 Majority Element II
- 230 Kth Smallest Element in a BST
- 233 Number of Digit One --- not done
- 3/3 Rank Name Score Finish Time Q1 (7) Q2 (7) Q3 (7) Q4 (7) 490 / 2674 abigcleverdog 14 1:25:34 0:29:17 1 1:10:34 2 huge room for improvement...
- 3/2 (6, 274) *****
- 220 Contains Duplicate III
- 221 Maximal Square
- 222 Count Complete Tree Nodes
- 223 Rectangle Area
- 224 Basic Calculator
- 227 Basic Calculator II
- 3/1 (5, 268) *****
- 212 Word Search II
- 213 House Robber II
- 214 Shortest Palindrome
- 215 Kth Largest Element in an Array
- 216 Combination Sum III
- 218 The Skyline Problem --not done
- 2/28 (2, 263) *****
- 2/27 (8, 261) *****
- 179 Largest Number
- 187 Repeated DNA Sequences
- 188 Best Time to Buy and Sell Stock IV -- not done
- 199 Binary Tree Right Side View
- 200 Number of Islands
- 201 Bitwise AND of Numbers Range
- 207 Course Schedule
- 208 Implement Trie (Prefix Tree)
- 209 Minimum Size Subarray Sum
- 2/26 (8, 253) *****
- 153 Find Minimum in Rotated Sorted Array
- 154 Find Minimum in Rotated Sorted Array II
- 162 Find Peak Element
- 164 Maximum Gap
- 165 Compare Version Numbers
- 166 Fraction to Recurring Decimal
- 173 Binary Search Trea Iterator
- 174 Dungeon Game
- 2/25 (3, 245) *****
- 2/24 (2, 242) *****
- 148 Sort List
- 149 Max Points on a Line
- 2/23 (6, 240) *****
- 142 Linked List Cycle II
- 143 Reorder List
- 144 Binary Tree Preorder Traversal
- 145 Binary Tree Postorder Traversal
- 146 LRU Cache
- 147 Insertion Sort List
- 2/22 (3, 234) *****
- 137 Single Number II
- 139 Word Break
- 140 Word Break II
- 2/21 (5, 231) *****
- 132 Palindrome Partitioning II
- 133 Clone Graph
- 134 Gas Station
- 135 Candy
- 137 Single Number II -- not done
- 138 Copy List with Random Pointer
- 2/20 (6, 226) *****
- 123 Best Time to Buy and Sell Stock III
- 124 Binary Tree Maximum Path Sum
- 126 Word Ladder II -- not accepted
- 128 Longest Consecutive Sequence
- 129 Sum Root to Leaf Numbers
- 130 Surrounded Regions
- 131 Palindrome Partitioning
- 2/19 (6, 220) *****
- 105 Construct Binary Tree from Preorder and Inorder Traversal
- 106 Construct Binary Tree from Inorder and Postorder Traversal
- 115 Distinct Subsequences
- 117 Populating Next Right Pointers in Each Node II
- 120 Triangle
- 123 Best Time to Buy and Sell Stock III -- not done
- 127 Word Ladder
- 2/18 (8, 214) ***** skip 105, 106
- 97 Interleaving String
- 98 Validate Binary Search Tree
- 99 Recover Binary Search Tree
- 102 Binary Tree Level Order Traversal
- 103 Binary Tree ZigZag Level Order Traversal
- 105 Construct Binary Tree from Preorder and Inorder Traversal -- not done
- 109 Convert Sorted List to Binary Search Tree
- 113 Path Sum II
- 114 Flatten Binary Tree to Linked List
- 2/17 (1, 206) *****
- 2/16 (4, 205) *****
- 2/15 (2, 201) *****
- skip 85, 87, 89 for now.
- 92 Reverse Linked List II
- 93 Restore IP Addresses
- 2/13 (2, 199) *****
- skip 85, 87, 89 for now.
- 90 Subsets II
- 91 Decode Ways
- 2/12 (1, 197) *****
- skip 85, 87 for now.
- 86 Partition List
- 89 Grey Code -- not done
- 2/11 (0, 196) *****
- 2/10 (1, 196) *****
- 2/9 (2, 195) *****
- 81 Search in Rotated Sorted Array II
- 82 Remove Duplicates from Sorted List II
- 84 Largest Rectangle in Histogram ----- not done
- 2/8 (2, 193) *****
- 2/7 (2, 191) *****
- 76 Combinations
- 78 Subsets
- 2/6 (1, 189) *****
- 77 Combinations
- 2/5 (2, 188) *****
- 74 Search a 2D Matrix
- 75 Sort Colors
- 76 Minimum Window Substring --- not done
- 2/4 (3, 186) *****
- 71 Simplify Path
- 72 Edit Distance
- 73 Set Matrix Zeroes
- 2/3 (1, 183) *****
- 2/2 Fri (5, 182) *****
- 60 Insert Interval
- 61 Rotate List
- 62 Unique Paths
- 63 Unique Paths II
- 64 Minimum Path Sum
- 2/1 Thu (2, 177) *****
- 1/31 Wed (2, 175) *****
- 55 Jump Game
- 56 Merge Intervals
- 1/30 Tue (1, 173) *****
- 1/29 Mon (1, 172) *****
- 52 N-Queens II
- 1/28 Sun (4, 171) *****
- 48 Rotate Image
- 49 Group Anagrams
- 50 Pow(x, n)
- 51 N-Queens
- 1/27 Sat (5, 167) *****
- 43 Multiply Strings
- 44 Wildcard Matching
- 45 Jump Game II
- 46 Pemutations
- 47 Pemutations II
- 1/26 Fri (3, 162) *****
- 1/25 Thu (1, 159) *****
- 1/24 Thu (1, 158) *****
- 1/23 Tue (3, 157) *****
- 1/22 Mon (2, 154) *****
- 1/21 Sun (3, 152) *****
- 24 Swap Nodes in Pairs
- 25 Reverse Nodes in k-Group
- 29 Divide Two Integers
- 30 Substring with Concatenation of All Words
- 1/20 Sat (4, 149) *****
- 17 Letter Combinations of a Phone Number
- 18 4Sum
- 19 Remove Nth Node From End of List
- 23 Merge k Sorted Lists ---first self conquered Hard, Whooray!
- 1/19 Fri (5, 145) *****
- 11 Container With Most Water
- 12 Integer to Roman
- 15 3Sum
- 16 3Sum Closest
- 1/18 Thu (3, 140) *****
- 5 Longest Palindromic Substring
- 6 ZigZag Conversion
- 8 String to Integer (atoi)
- 10 Regular Expression Matching
- 1/17 Wed (1, 137) *****
- 1/16 Tue (3, 136) ***** strategy change, focus on the 1-400 for now
- 1/15 Mon (1, 133)
- 384 Shuffle an Array
- 1/12 Fri (1, 132)
- 1/11 Thu (5, 131)
- 503 Next Greater Element II
- 454 4Sum II
- 648 Replace Words
- 646 Maximum Length of Pair Chain
- 382 Linked List Random Node
- 1/10 Wed (3, 126)
- 1/9 Tue (3, 123)
- 547 Friend Circles
- 347 Top K Frequent Elements
- 672 Bulb Switcher II
- 1/8 Mon (3, 120)
- 529 Minesweeper
- 565 Array Nesting
- 655 Print Binary Tree
- 1/7 Sun (3, 117)
- 1/4 Thu (1, 114)
- 1/3 Wed (5, 113)
- 609 Find Duplicate File in System
- 677 Map Sum Pairs
- 462 Minimum Moves to Equal Array Elements II
- 495 Teemo Attacking
- 667 Beautiful Arrangement II
- 1/2 Tue (3, 108)
- 526 Beautiful Arrangement
- 739 Daily Temperatures
- 260 Single Number III
- 1/1 Mon Happy New Year (5, 105)
- 540 Single Element in a Sorted Array
- 647 Palindrome Substrings
- 515 Find Largest Value in Each Tree Row
- 748 Shortest Completing Word
- 413 Arithmetic Slices
- 526 Beautiful Arrangement
- 12/31 Sun (5, 100)
- 537 Complex Number Multiplication
- 419 Battleships in a Board
- 338 Counting Bits
- 442 Find All Duplicates in an Array
- 406 Queue Reconstruction by Height
- 12/30 Sat (3, 95)
- 12/29 Fri (5, 92)
- 204 Count Primes
- 278 First Bad Version
- 189 Rotate Array
- 479 Largest Palindrome Product
- 7 Reverse Integer
- 12/28 Thu (10, 87)
- 155 Min Stack
- 475 Heaters
- 190 Reverse Bits
- 581 Shortest Unsorted Continuous Subarray
- 28 Implement strStr()
- 69 Sqrt(x)
- 532 K-diff Pairs in an Array
- 414 Third Maximum Number
- 168 Excel Sheet Column Title
- 125 Valid Palindrome
- 12/27 Wed (6, 77)
- 58 Length of Last Word
- 14 Longest Common Prefix
- 303 Range Sum Query - Immutable
- 160 Intersection of Two Linked Lists
- 605 Can Place Flowers
- 400 Nth Digit
- 12/26 Tue (5, 71)
- 203 Remove Linked list Elements
- 219 Contains Duplicate II
- 680 Valid Palindrome II
- 633 Sum of Square Numbers
- 88 Merger Sorted Array
- 12/25 Mon, Merry Christmas (2, 66)
- 290 Word Pattern
- 234 Palindrome Linked list
- 12/24 Sun (4, 64)
- 12/23 Sat (1, 60)
- 12/22 Fri (7, 59)
- 374 Guess Number Higher or Lower
- 38 Guess Number Higher or Lower
- 26 Remove Duplicates from Sorted Array
- 9 Palindrome Number
- 141 Linked List Cycle
- 205 Isomorphic Strings
- 686 Repeated String Match
- 12/21 Thu (10, 52)
- 53 Maximum Subarray
- 645 Set Mismatch
- 198 House Robber
- 643 Maximum Average Subarray I
- 119 Pascal's Triangle II
- 232 Implement Queue using Stacks
- 443 String Compression
- 434 Number of Segments in a String
- 172 Fractorial Trailing Zeroes
- 1 Two Sum
- 12/20 Wed (1, 42)
- 36 Valid Sudoku
- 37 Sudoku Solver -- Not done
- 12/18 Mon (5, 41)
- 628 Maximum Product of Three Numbers
- 674 Longest Continuous Increasing Subsequence
- 482 License Key Formatting
- 724 Find Pivot Index
- 720 Longest Word in Dictionary
- 12/17 Sun (2, 36)
- 12/16 Sat (1, 34)
- 12/15 Fri (3, 33)
- 513 Find Bottom Left Tree Value
- 508 Most Frequent Subtree Sum
- 116 Populating Next Right Pointers in Each Node
Finished all easy tree problems. Change topic tomorrow.
- 12/14 Thu (7, 30)
- 235 Lowest Common Ancestor of a Binary Search Tree
- 563 Binary Tree Tilt
- 572 Subtree of Another Tree
- 104 Maximum Depth of Binary Tree
- 606 Construct String from Binary Tree
- 617 Merge Two Binary Trees
- 101 Symmetric Tree
- 12/13 Wed (4, 23)
- 12/12 Tue (2, 19)
- 12/11 Mon (5, 17)
- 107 Binary Tree Level Order Traversal II
- 226 Invert Binary Tree
- 257 Binary Tree Paths
- 404 Sum of Left Leaves
- 437 Path Sum III
- 12/10 Sun (3, 12)
- 12/09 Sat (1, 9)
- 12/08 Fri (2, 8)
- Made a pathetic solution, big room for improvement
- 12/07 Thu (5, 6)
- 383 Ransom Note
- 169 Majority Element
- 404 Sum of Left Leaves
- 455 Assign Cookies
- 687 Longest Univalue Path
- Unfinished, I need to get more comfortable with trees.
- 12/06 Wed (1, 1)