Skip to content

Commit c6c8236

Browse files
author
openset
committed
Add: new
1 parent f935e83 commit c6c8236

File tree

8 files changed

+33
-10
lines changed

8 files changed

+33
-10
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ LeetCode Problems' Solutions
6262

6363
| # | Title | Solution | Difficulty |
6464
| :-: | - | - | :-: |
65+
| <span id="1204">1204</span> | [Last Person to Fit in the Elevator](https://leetcode.com/problems/last-person-to-fit-in-the-elevator) 🔒 | [MySQL](https://github.com/openset/leetcode/tree/master/problems/last-person-to-fit-in-the-elevator) | Medium |
6566
| <span id="1203">1203</span> | [Sort Items by Groups Respecting Dependencies](https://leetcode.com/problems/sort-items-by-groups-respecting-dependencies "项目管理") | [Go](https://github.com/openset/leetcode/tree/master/problems/sort-items-by-groups-respecting-dependencies) | Hard |
6667
| <span id="1202">1202</span> | [Smallest String With Swaps](https://leetcode.com/problems/smallest-string-with-swaps "交换字符串中的元素") | [Go](https://github.com/openset/leetcode/tree/master/problems/smallest-string-with-swaps) | Medium |
6768
| <span id="1201">1201</span> | [Ugly Number III](https://leetcode.com/problems/ugly-number-iii "丑数 III") | [Go](https://github.com/openset/leetcode/tree/master/problems/ugly-number-iii) | Medium |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!--|This file generated by command(leetcode description); DO NOT EDIT. |-->
2+
<!--+----------------------------------------------------------------------+-->
3+
<!--|@author openset <[email protected]> |-->
4+
<!--|@link https://github.com/openset |-->
5+
<!--|@home https://github.com/openset/leetcode |-->
6+
<!--+----------------------------------------------------------------------+-->
7+
8+
[< Previous](https://github.com/openset/leetcode/tree/master/problems/sort-items-by-groups-respecting-dependencies "Sort Items by Groups Respecting Dependencies")
9+
                
10+
Next >
11+
12+
## [1204. Last Person to Fit in the Elevator (Medium)](https://leetcode.com/problems/last-person-to-fit-in-the-elevator "")
13+
14+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Create table If Not Exists Queue (person_id int, person_name varchar(30), weight int, turn int);
2+
Truncate table Queue;
3+
insert into Queue (person_id, person_name, weight, turn) values ('5', 'George Washington', '250', '1');
4+
insert into Queue (person_id, person_name, weight, turn) values ('4', 'Thomas Jefferson', '175', '5');
5+
insert into Queue (person_id, person_name, weight, turn) values ('3', 'John Adams', '350', '2');
6+
insert into Queue (person_id, person_name, weight, turn) values ('6', 'Thomas Jefferson', '400', '3');
7+
insert into Queue (person_id, person_name, weight, turn) values ('1', 'James Elephant', '500', '6');
8+
insert into Queue (person_id, person_name, weight, turn) values ('2', 'Will Johnliams', '200', '4');

problems/monthly-transactions-i/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99

1010
[Next >](https://github.com/openset/leetcode/tree/master/problems/tournament-winners "Tournament Winners")
1111

12-
## [1193. Monthly Transactions I (Medium)](https://leetcode.com/problems/monthly-transactions-i "")
12+
## [1193. Monthly Transactions I (Medium)](https://leetcode.com/problems/monthly-transactions-i "每月交易 I")
1313

1414

problems/sort-items-by-groups-respecting-dependencies/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
[< Previous](https://github.com/openset/leetcode/tree/master/problems/smallest-string-with-swaps "Smallest String With Swaps")
99

10-
Next >
10+
[Next >](https://github.com/openset/leetcode/tree/master/problems/last-person-to-fit-in-the-elevator "Last Person to Fit in the Elevator")
1111

1212
## [1203. Sort Items by Groups Respecting Dependencies (Hard)](https://leetcode.com/problems/sort-items-by-groups-respecting-dependencies "")
1313

problems/ugly-number-iii/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<pre>
2929
<strong>Input:</strong> n = 4, a = 2, b = 3, c = 4
3030
<strong>Output:</strong> 6
31-
<strong>Explanation: </strong>The ugly numbers are 2, 3, 4, 6, 8, 9, 12... The 4th is 6.
31+
<strong>Explanation: </strong>The ugly numbers are 2, 3, 4, 6, 8, 9, 10, 12... The 4th is 6.
3232
</pre>
3333

3434
<p><strong>Example 3:</strong></p>

tag/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
| 9 | [Greedy](https://github.com/openset/leetcode/tree/master/tag/greedy/README.md) | [贪心算法](https://openset.github.io/tags/greedy/) | | 10 | [Two Pointers](https://github.com/openset/leetcode/tree/master/tag/two-pointers/README.md) | [双指针](https://openset.github.io/tags/two-pointers/) |
1717
| 11 | [Breadth-first Search](https://github.com/openset/leetcode/tree/master/tag/breadth-first-search/README.md) | [广度优先搜索](https://openset.github.io/tags/breadth-first-search/) | | 12 | [Stack](https://github.com/openset/leetcode/tree/master/tag/stack/README.md) | [](https://openset.github.io/tags/stack/) |
1818
| 13 | [Backtracking](https://github.com/openset/leetcode/tree/master/tag/backtracking/README.md) | [回溯算法](https://openset.github.io/tags/backtracking/) | | 14 | [Design](https://github.com/openset/leetcode/tree/master/tag/design/README.md) | [设计](https://openset.github.io/tags/design/) |
19-
| 15 | [Linked List](https://github.com/openset/leetcode/tree/master/tag/linked-list/README.md) | [链表](https://openset.github.io/tags/linked-list/) | | 16 | [Sort](https://github.com/openset/leetcode/tree/master/tag/sort/README.md) | [排序](https://openset.github.io/tags/sort/) |
20-
| 17 | [Bit Manipulation](https://github.com/openset/leetcode/tree/master/tag/bit-manipulation/README.md) | [位运算](https://openset.github.io/tags/bit-manipulation/) | | 18 | [Graph](https://github.com/openset/leetcode/tree/master/tag/graph/README.md) | [](https://openset.github.io/tags/graph/) |
19+
| 15 | [Graph](https://github.com/openset/leetcode/tree/master/tag/graph/README.md) | [](https://openset.github.io/tags/graph/) | | 16 | [Linked List](https://github.com/openset/leetcode/tree/master/tag/linked-list/README.md) | [链表](https://openset.github.io/tags/linked-list/) |
20+
| 17 | [Sort](https://github.com/openset/leetcode/tree/master/tag/sort/README.md) | [排序](https://openset.github.io/tags/sort/) | | 18 | [Bit Manipulation](https://github.com/openset/leetcode/tree/master/tag/bit-manipulation/README.md) | [位运算](https://openset.github.io/tags/bit-manipulation/) |
2121
| 19 | [Heap](https://github.com/openset/leetcode/tree/master/tag/heap/README.md) | [](https://openset.github.io/tags/heap/) | | 20 | [Union Find](https://github.com/openset/leetcode/tree/master/tag/union-find/README.md) | [并查集](https://openset.github.io/tags/union-find/) |
2222
| 21 | [Sliding Window](https://github.com/openset/leetcode/tree/master/tag/sliding-window/README.md) | [Sliding Window](https://openset.github.io/tags/sliding-window/) | | 22 | [Divide and Conquer](https://github.com/openset/leetcode/tree/master/tag/divide-and-conquer/README.md) | [分治算法](https://openset.github.io/tags/divide-and-conquer/) |
2323
| 23 | [Trie](https://github.com/openset/leetcode/tree/master/tag/trie/README.md) | [字典树](https://openset.github.io/tags/trie/) | | 24 | [Recursion](https://github.com/openset/leetcode/tree/master/tag/recursion/README.md) | [递归](https://openset.github.io/tags/recursion/) |

tag/tags.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@
6969
"Slug": "design",
7070
"TranslatedName": "设计"
7171
},
72+
{
73+
"Name": "Graph",
74+
"Slug": "graph",
75+
"TranslatedName": ""
76+
},
7277
{
7378
"Name": "Linked List",
7479
"Slug": "linked-list",
@@ -84,11 +89,6 @@
8489
"Slug": "bit-manipulation",
8590
"TranslatedName": "位运算"
8691
},
87-
{
88-
"Name": "Graph",
89-
"Slug": "graph",
90-
"TranslatedName": ""
91-
},
9292
{
9393
"Name": "Heap",
9494
"Slug": "heap",

0 commit comments

Comments
 (0)