File tree Expand file tree Collapse file tree 5 files changed +400
-7
lines changed Expand file tree Collapse file tree 5 files changed +400
-7
lines changed Original file line number Diff line number Diff line change 102
102
* [ 98. Validate Binary Search Tree] ( leetCode-98-Validate-Binary-Search-Tree.md )
103
103
* [ 99. Recover Binary Search Tree] ( leetcode-99-Recover-Binary-Search-Tree.md )
104
104
* [ 100. Same Tree] ( leetcode-100-Same-Tree.md )
105
- * [ 101 题到 136 题] ( leetcode-101-200.md )
105
+ * [ 101 题到 137 题] ( leetcode-101-200.md )
106
106
* [ 101. Symmetric Tree] ( leetcode-101-Symmetric-Tree.md )
107
107
* [ 102. Binary Tree Level Order Traversal] ( leetcode-102-Binary-Tree-Level-Order-Traversal.md )
108
108
* [ 103. Binary Tree Zigzag Level Order Traversal] ( leetcode-103-Binary-Tree-Zigzag-Level-Order-Traversal.md )
138
138
* [ 133. Clone Graph] ( leetcode-133-Clone-Graph.md )
139
139
* [ 134. Gas Station] ( leetcode-134-Gas-Station.md )
140
140
* [ 135. Candy] ( leetcode-135-Candy.md )
141
- * [ 136. Single Number] ( leetcode-136-Single-Number.md )
141
+ * [ 136. Single Number] ( leetcode-136-Single-Number.md )
142
+ * [ 137* . Single Number II] ( leetcode-137-Single-NumberII.md )
Original file line number Diff line number Diff line change @@ -34,9 +34,9 @@ public List<Integer> spiralOrder(int[][] matrix) {
34
34
// 注意 y 方向写在前边,x 方向写在后边
35
35
ans. add(matrix[start_y][start_x]);
36
36
switch (direction) {
37
- // 当前向左
37
+ // 当前向右
38
38
case 0 :
39
- // 继续向左是否到达边界
39
+ // 继续向右是否到达边界
40
40
// 到达边界就改变方向,并且更新上边界
41
41
if (start_x + 1 == right_border) {
42
42
direction = 1 ;
Original file line number Diff line number Diff line change @@ -28,9 +28,9 @@ public int[][] generateMatrix(int n) {
28
28
ans[start_y][start_x] = count;
29
29
count++ ;
30
30
switch (direction) {
31
- // 当前向左
31
+ // 当前向右
32
32
case 0 :
33
- // 继续向左是否到达边界
33
+ // 继续向右是否到达边界
34
34
// 到达边界就改变方向,并且更新上边界
35
35
if (start_x + 1 == right_border) {
36
36
direction = 1 ;
Original file line number Diff line number Diff line change 68
68
69
69
<a href =" leetcode-135-Candy.html " >135. Candy</a >
70
70
71
- <a href =" leetcode-136-Single-Number.html " >136. Single Number</a >
71
+ <a href =" leetcode-136-Single-Number.html " >136. Single Number</a >
72
+
73
+ <a href =" leetcode-137-Single-NumberII.html " >137. Single Number II</a >
You can’t perform that action at this time.
0 commit comments