Skip to content

Commit

Permalink
update progress
Browse files Browse the repository at this point in the history
  • Loading branch information
yennanliu committed Nov 8, 2024
1 parent a9e5a62 commit 1945512
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 28 deletions.
4 changes: 2 additions & 2 deletions data/progress.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
20241108: 210,1188,130
20241104: 207,210(todo)
20241108: 1188,130,855(again),210(todo)
20241104: 207
20241103: 900
20241102: 26,27
20241102: 802,1197,26
Expand Down
49 changes: 24 additions & 25 deletions data/to_review.txt
Original file line number Diff line number Diff line change
@@ -1,42 +1,41 @@
2025-01-02 -> ['210,1188,130']
2024-12-29 -> ['207,210(todo)']
2025-01-02 -> ['1188,130,855(again),210(todo)']
2024-12-28 -> ['900']
2024-12-27 -> ['26,27', '802,1197,26']
2024-12-21 -> ['855,846']
2024-12-20 -> ['932']
2024-12-18 -> ['951,792']
2024-12-14 -> ['163,1048']
2024-12-13 -> ['298,729']
2024-12-12 -> ['210,1188,130', '1146']
2024-12-08 -> ['207,210(todo)', '737']
2024-12-12 -> ['1188,130,855(again),210(todo)', '1146']
2024-12-08 -> ['737']
2024-12-07 -> ['900', '686,734,737']
2024-12-06 -> ['26,27', '802,1197,26', '353']
2024-12-05 -> ['528,334']
2024-12-03 -> ['1145']
2024-11-30 -> ['855,846', '1145,1219']
2024-11-29 -> ['210,1188,130', '932']
2024-11-29 -> ['1188,130,855(again),210(todo)', '932']
2024-11-27 -> ['951,792', '524,221,889']
2024-11-26 -> ['743,889']
2024-11-25 -> ['207,210(todo)', '837']
2024-11-25 -> ['837']
2024-11-24 -> ['900']
2024-11-23 -> ['26,27', '802,1197,26', '163,1048', '981']
2024-11-22 -> ['298,729', '1087']
2024-11-21 -> ['210,1188,130', '1146']
2024-11-21 -> ['1188,130,855(again),210(todo)', '1146']
2024-11-20 -> ['939']
2024-11-18 -> ['430']
2024-11-17 -> ['207,210(todo)', '855,846', '737', '363']
2024-11-16 -> ['210,1188,130', '900', '932', '686,734,737', '1032,844,1011']
2024-11-17 -> ['855,846', '737', '363']
2024-11-16 -> ['1188,130,855(again),210(todo)', '900', '932', '686,734,737', '1032,844,1011']
2024-11-15 -> ['26,27', '802,1197,26', '353', '947']
2024-11-14 -> ['951,792', '528,334']
2024-11-13 -> ['210,1188,130']
2024-11-12 -> ['207,210(todo)', '1145', '753']
2024-11-11 -> ['210,1188,130', '900', '727']
2024-11-10 -> ['210,1188,130', '26,27', '802,1197,26', '163,1048']
2024-11-09 -> ['210,1188,130', '207,210(todo)', '855,846', '298,729', '1145,1219']
2024-11-13 -> ['1188,130,855(again),210(todo)']
2024-11-12 -> ['1145', '753']
2024-11-11 -> ['1188,130,855(again),210(todo)', '900', '727']
2024-11-10 -> ['1188,130,855(again),210(todo)', '26,27', '802,1197,26', '163,1048']
2024-11-09 -> ['1188,130,855(again),210(todo)', '855,846', '298,729', '1145,1219']
2024-11-08 -> ['900', '932', '1146']
2024-11-07 -> ['207,210(todo)', '26,27', '802,1197,26']
2024-11-06 -> ['207,210(todo)', '900', '951,792', '524,221,889']
2024-11-05 -> ['207,210(todo)', '900', '26,27', '802,1197,26', '743,889']
2024-11-07 -> ['26,27', '802,1197,26']
2024-11-06 -> ['900', '951,792', '524,221,889']
2024-11-05 -> ['900', '26,27', '802,1197,26', '743,889']
2024-11-04 -> ['900', '26,27', '802,1197,26', '855,846', '737', '837', '659']
2024-11-03 -> ['26,27', '802,1197,26', '932', '686,734,737', '801,552']
2024-11-02 -> ['163,1048', '353', '981', '1057,1066,1110']
Expand Down Expand Up @@ -373,7 +372,7 @@
2023-08-29 -> ['131,17', '40', '1448', '113,257']
2023-08-28 -> ['131,17', '90', '199']
2023-08-27 -> ['79', '46', '112']
2023-08-26 -> ['40', '78,39', '572,235', '207']
2023-08-26 -> ['207', '40', '78,39', '572,235']
2023-08-25 -> ['79', '90', '355', '2,146', '404']
2023-08-24 -> ['79', '40', '46', '621', '138']
2023-08-23 -> ['79', '40', '90', '981,143']
Expand All @@ -393,7 +392,7 @@
2023-08-08 -> ['1448', '452', '113,257']
2023-08-07 -> ['33', '208,211', '199', '617']
2023-08-06 -> ['230,105', '875,153', '112']
2023-08-05 -> ['098', '572,235', '853,74', '207', '543,572']
2023-08-05 -> ['207', '098', '572,235', '853,74', '543,572']
2023-08-04 -> ['208,211', '2,146', '739,150,22', '404']
2023-08-03 -> ['230,105', '1448', '138']
2023-08-02 -> ['208,211', '098', '199', '981,143']
Expand All @@ -406,26 +405,26 @@
2023-07-26 -> ['199', '572,235', '138', '452', '113,257']
2023-07-25 -> ['33', '572,235', '2,146', '981,143']
2023-07-24 -> ['572,235', '2,146', '138', '875,153', '567,155', '112']
2023-07-23 -> ['2,146', '138', '981,143', '452', '853,74', '19', '207']
2023-07-23 -> ['207', '2,146', '138', '981,143', '452', '853,74', '19']
2023-07-22 -> ['33', '138', '981,143', '739,150,22', '128,167,3,424', '404', '687']
2023-07-21 -> ['981,143', '452', '875,153', '36,271', '637,653', '1047']
2023-07-20 -> ['33', '452', '853,74', '347']
2023-07-19 -> ['33', '452', '875,153', '739,150,22', '567,155']
2023-07-18 -> ['33', '875,153', '853,74', '19', '113,257']
2023-07-17 -> ['875,153', '853,74', '739,150,22', '128,167,3,424', '104,110', '617']
2023-07-16 -> ['853,74', '739,150,22', '567,155', '36,271', '112']
2023-07-15 -> ['739,150,22', '19', '347', '207', '162', '543,572']
2023-07-15 -> ['207', '739,150,22', '19', '347', '162', '543,572']
2023-07-14 -> ['567,155', '128,167,3,424', '404', '496']
2023-07-13 -> ['567,155', '19', '36,271', '113,257']
2023-07-12 -> ['567,155', '19', '128,167,3,424', '347']
2023-07-11 -> ['19', '128,167,3,424', '36,271', '112']
2023-07-10 -> ['128,167,3,424', '36,271', '347', '113,257', '207', '160,203']
2023-07-10 -> ['207', '128,167,3,424', '36,271', '347', '113,257', '160,203']
2023-07-09 -> ['36,271', '347', '404', '104,110', '687', '1353,21,24']
2023-07-08 -> ['347', '113,257', '112', '637,653', '101']
2023-07-07 -> ['113,257', '207', '162', '067']
2023-07-07 -> ['207', '113,257', '162', '067']
2023-07-06 -> ['113,257', '112', '404']
2023-07-05 -> ['112', '207']
2023-07-04 -> ['112', '207', '404', '104,110', '617']
2023-07-05 -> ['207', '112']
2023-07-04 -> ['207', '112', '404', '104,110', '617']
2023-07-03 -> ['207', '404']
2023-07-02 -> ['404', '162', '543,572', '038']
2023-07-01 -> ['104,110', '687', '674']
Expand Down
10 changes: 9 additions & 1 deletion leetcode_java/src/main/java/dev/workspace5.java
Original file line number Diff line number Diff line change
Expand Up @@ -2101,7 +2101,7 @@ public int[] beautifulArray(int n) {
* a heap to track "all distance", so can pop max val from heap
*
*
*
* [0,x,0,0,x] dis = 1,4
*
*/
class ExamRoom {
Expand All @@ -2115,10 +2115,18 @@ public ExamRoom(int n) {
}

public int seat() {
// if not one seated, select the 0 idx seat
if (this.pq.isEmpty()){
this.seats[0] = 0;
return 0;
}

// TODO : fix
return 0;
}

public void leave(int p) {

this.seats[p] = 0;
}

Expand Down

0 comments on commit 1945512

Please sign in to comment.