Skip to content

Commit 4bb02b0

Browse files
author
王鹏
committed
docs: add _1117_H2O
1 parent 22c6c1c commit 4bb02b0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
- [x] [1116. 打印零与奇偶数](https://leetcode-cn.com/problems/print-zero-even-odd/)
2020

21-
- [ ] [1117. H2O 生成](https://leetcode-cn.com/problems/building-h2o/)
21+
- [x] [1117. H2O 生成](https://github.com/pphdsny/Leetcode-Java/blob/master/src/pp/arithmetic/leetcode/_1116_ZeroEvenOdd.java)
2222

2323
- [ ] [1195. 交替打印字符串](https://leetcode-cn.com/problems/fizz-buzz-multithreaded/)
2424

@@ -57,7 +57,7 @@
5757
- [线段树](https://leetcode-cn.com/tag/segment-tree/)(9)
5858
- [二叉搜索树](https://leetcode-cn.com/tag/binary-search-tree/)(15)
5959

60-
### 题目列表(更新中—已完成255
60+
### 题目列表(更新中—已完成256
6161

6262
[Leetcode-Java(250+题解,持续更新、欢迎star&留言&交流)](https://github.com/pphdsny/Leetcode-Java/blob/master/src/pp/arithmetic/leetcode/_1116_ZeroEvenOdd.java)
6363

@@ -309,6 +309,7 @@
309309
| #1114 | [按序打印](https://leetcode-cn.com/problems/print-in-order/) | [Foo](https://github.com/pphdsny/Leetcode-Java/blob/master/src/pp/arithmetic/leetcode/_1114_Foo.java) | | Easy | |
310310
| #1115 | [交替打印FooBar](https://leetcode-cn.com/problems/print-foobar-alternately/) | [FooBar]([Leetcode-Java(250+题解,持续更新、欢迎star&留言&交流)](https://github.com/pphdsny/Leetcode-Java/blob/master/src/pp/arithmetic/leetcode/_1115_FooBar.java)) | | Medium | |
311311
| #1116 | [打印零与奇偶数](https://leetcode-cn.com/problems/print-zero-even-odd/) | [ZeroEvenOdd](https://github.com/pphdsny/Leetcode-Java/blob/master/src/pp/arithmetic/leetcode/_1116_ZeroEvenOdd.java) | | Medium | |
312+
| #1117 | [H2O 生成](https://leetcode-cn.com/problems/building-h2o/) | [H2O](https://github.com/pphdsny/Leetcode-Java/blob/master/src/pp/arithmetic/leetcode/_1117_H2O.java) | | Medium | |
312313

313314
LCP
314315

src/pp/arithmetic/leetcode/_1117_H2O.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ public void run() {
9595
}
9696
}
9797

98+
//使用系统类进行优化
9899
class H2O2 {
99100

100101
private Semaphore hs;

0 commit comments

Comments
 (0)