Skip to content

Commit 1945512

Browse files
committed
update progress
1 parent a9e5a62 commit 1945512

File tree

3 files changed

+35
-28
lines changed

3 files changed

+35
-28
lines changed

data/progress.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
20241108: 210,1188,130
2-
20241104: 207,210(todo)
1+
20241108: 1188,130,855(again),210(todo)
2+
20241104: 207
33
20241103: 900
44
20241102: 26,27
55
20241102: 802,1197,26

data/to_review.txt

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,41 @@
1-
2025-01-02 -> ['210,1188,130']
2-
2024-12-29 -> ['207,210(todo)']
1+
2025-01-02 -> ['1188,130,855(again),210(todo)']
32
2024-12-28 -> ['900']
43
2024-12-27 -> ['26,27', '802,1197,26']
54
2024-12-21 -> ['855,846']
65
2024-12-20 -> ['932']
76
2024-12-18 -> ['951,792']
87
2024-12-14 -> ['163,1048']
98
2024-12-13 -> ['298,729']
10-
2024-12-12 -> ['210,1188,130', '1146']
11-
2024-12-08 -> ['207,210(todo)', '737']
9+
2024-12-12 -> ['1188,130,855(again),210(todo)', '1146']
10+
2024-12-08 -> ['737']
1211
2024-12-07 -> ['900', '686,734,737']
1312
2024-12-06 -> ['26,27', '802,1197,26', '353']
1413
2024-12-05 -> ['528,334']
1514
2024-12-03 -> ['1145']
1615
2024-11-30 -> ['855,846', '1145,1219']
17-
2024-11-29 -> ['210,1188,130', '932']
16+
2024-11-29 -> ['1188,130,855(again),210(todo)', '932']
1817
2024-11-27 -> ['951,792', '524,221,889']
1918
2024-11-26 -> ['743,889']
20-
2024-11-25 -> ['207,210(todo)', '837']
19+
2024-11-25 -> ['837']
2120
2024-11-24 -> ['900']
2221
2024-11-23 -> ['26,27', '802,1197,26', '163,1048', '981']
2322
2024-11-22 -> ['298,729', '1087']
24-
2024-11-21 -> ['210,1188,130', '1146']
23+
2024-11-21 -> ['1188,130,855(again),210(todo)', '1146']
2524
2024-11-20 -> ['939']
2625
2024-11-18 -> ['430']
27-
2024-11-17 -> ['207,210(todo)', '855,846', '737', '363']
28-
2024-11-16 -> ['210,1188,130', '900', '932', '686,734,737', '1032,844,1011']
26+
2024-11-17 -> ['855,846', '737', '363']
27+
2024-11-16 -> ['1188,130,855(again),210(todo)', '900', '932', '686,734,737', '1032,844,1011']
2928
2024-11-15 -> ['26,27', '802,1197,26', '353', '947']
3029
2024-11-14 -> ['951,792', '528,334']
31-
2024-11-13 -> ['210,1188,130']
32-
2024-11-12 -> ['207,210(todo)', '1145', '753']
33-
2024-11-11 -> ['210,1188,130', '900', '727']
34-
2024-11-10 -> ['210,1188,130', '26,27', '802,1197,26', '163,1048']
35-
2024-11-09 -> ['210,1188,130', '207,210(todo)', '855,846', '298,729', '1145,1219']
30+
2024-11-13 -> ['1188,130,855(again),210(todo)']
31+
2024-11-12 -> ['1145', '753']
32+
2024-11-11 -> ['1188,130,855(again),210(todo)', '900', '727']
33+
2024-11-10 -> ['1188,130,855(again),210(todo)', '26,27', '802,1197,26', '163,1048']
34+
2024-11-09 -> ['1188,130,855(again),210(todo)', '855,846', '298,729', '1145,1219']
3635
2024-11-08 -> ['900', '932', '1146']
37-
2024-11-07 -> ['207,210(todo)', '26,27', '802,1197,26']
38-
2024-11-06 -> ['207,210(todo)', '900', '951,792', '524,221,889']
39-
2024-11-05 -> ['207,210(todo)', '900', '26,27', '802,1197,26', '743,889']
36+
2024-11-07 -> ['26,27', '802,1197,26']
37+
2024-11-06 -> ['900', '951,792', '524,221,889']
38+
2024-11-05 -> ['900', '26,27', '802,1197,26', '743,889']
4039
2024-11-04 -> ['900', '26,27', '802,1197,26', '855,846', '737', '837', '659']
4140
2024-11-03 -> ['26,27', '802,1197,26', '932', '686,734,737', '801,552']
4241
2024-11-02 -> ['163,1048', '353', '981', '1057,1066,1110']
@@ -373,7 +372,7 @@
373372
2023-08-29 -> ['131,17', '40', '1448', '113,257']
374373
2023-08-28 -> ['131,17', '90', '199']
375374
2023-08-27 -> ['79', '46', '112']
376-
2023-08-26 -> ['40', '78,39', '572,235', '207']
375+
2023-08-26 -> ['207', '40', '78,39', '572,235']
377376
2023-08-25 -> ['79', '90', '355', '2,146', '404']
378377
2023-08-24 -> ['79', '40', '46', '621', '138']
379378
2023-08-23 -> ['79', '40', '90', '981,143']
@@ -393,7 +392,7 @@
393392
2023-08-08 -> ['1448', '452', '113,257']
394393
2023-08-07 -> ['33', '208,211', '199', '617']
395394
2023-08-06 -> ['230,105', '875,153', '112']
396-
2023-08-05 -> ['098', '572,235', '853,74', '207', '543,572']
395+
2023-08-05 -> ['207', '098', '572,235', '853,74', '543,572']
397396
2023-08-04 -> ['208,211', '2,146', '739,150,22', '404']
398397
2023-08-03 -> ['230,105', '1448', '138']
399398
2023-08-02 -> ['208,211', '098', '199', '981,143']
@@ -406,26 +405,26 @@
406405
2023-07-26 -> ['199', '572,235', '138', '452', '113,257']
407406
2023-07-25 -> ['33', '572,235', '2,146', '981,143']
408407
2023-07-24 -> ['572,235', '2,146', '138', '875,153', '567,155', '112']
409-
2023-07-23 -> ['2,146', '138', '981,143', '452', '853,74', '19', '207']
408+
2023-07-23 -> ['207', '2,146', '138', '981,143', '452', '853,74', '19']
410409
2023-07-22 -> ['33', '138', '981,143', '739,150,22', '128,167,3,424', '404', '687']
411410
2023-07-21 -> ['981,143', '452', '875,153', '36,271', '637,653', '1047']
412411
2023-07-20 -> ['33', '452', '853,74', '347']
413412
2023-07-19 -> ['33', '452', '875,153', '739,150,22', '567,155']
414413
2023-07-18 -> ['33', '875,153', '853,74', '19', '113,257']
415414
2023-07-17 -> ['875,153', '853,74', '739,150,22', '128,167,3,424', '104,110', '617']
416415
2023-07-16 -> ['853,74', '739,150,22', '567,155', '36,271', '112']
417-
2023-07-15 -> ['739,150,22', '19', '347', '207', '162', '543,572']
416+
2023-07-15 -> ['207', '739,150,22', '19', '347', '162', '543,572']
418417
2023-07-14 -> ['567,155', '128,167,3,424', '404', '496']
419418
2023-07-13 -> ['567,155', '19', '36,271', '113,257']
420419
2023-07-12 -> ['567,155', '19', '128,167,3,424', '347']
421420
2023-07-11 -> ['19', '128,167,3,424', '36,271', '112']
422-
2023-07-10 -> ['128,167,3,424', '36,271', '347', '113,257', '207', '160,203']
421+
2023-07-10 -> ['207', '128,167,3,424', '36,271', '347', '113,257', '160,203']
423422
2023-07-09 -> ['36,271', '347', '404', '104,110', '687', '1353,21,24']
424423
2023-07-08 -> ['347', '113,257', '112', '637,653', '101']
425-
2023-07-07 -> ['113,257', '207', '162', '067']
424+
2023-07-07 -> ['207', '113,257', '162', '067']
426425
2023-07-06 -> ['113,257', '112', '404']
427-
2023-07-05 -> ['112', '207']
428-
2023-07-04 -> ['112', '207', '404', '104,110', '617']
426+
2023-07-05 -> ['207', '112']
427+
2023-07-04 -> ['207', '112', '404', '104,110', '617']
429428
2023-07-03 -> ['207', '404']
430429
2023-07-02 -> ['404', '162', '543,572', '038']
431430
2023-07-01 -> ['104,110', '687', '674']

leetcode_java/src/main/java/dev/workspace5.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2101,7 +2101,7 @@ public int[] beautifulArray(int n) {
21012101
* a heap to track "all distance", so can pop max val from heap
21022102
*
21032103
*
2104-
*
2104+
* [0,x,0,0,x] dis = 1,4
21052105
*
21062106
*/
21072107
class ExamRoom {
@@ -2115,10 +2115,18 @@ public ExamRoom(int n) {
21152115
}
21162116

21172117
public int seat() {
2118+
// if not one seated, select the 0 idx seat
2119+
if (this.pq.isEmpty()){
2120+
this.seats[0] = 0;
2121+
return 0;
2122+
}
2123+
2124+
// TODO : fix
21182125
return 0;
21192126
}
21202127

21212128
public void leave(int p) {
2129+
21222130
this.seats[p] = 0;
21232131
}
21242132

0 commit comments

Comments
 (0)