Skip to content

Commit 08b607c

Browse files
authored
Update Solution.java
1 parent d25e0d5 commit 08b607c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

solution/0228.Summary Ranges/Solution.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
class Solution {
22
public List<String> summaryRanges(int[] nums) {
33
List<String> res = new ArrayList<>();
4-
for (int i = 0, j = 1; i < nums.length; i = j, ++j) {
4+
for (int i = 0, j = 1; i < nums.length; i = j++) {
55
while (j < nums.length && nums[j] - nums[j - 1] == 1) {
66
++j;
77
}

0 commit comments

Comments
 (0)