Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions 228.汇总区间.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ var summaryRanges = function (nums) {
temp.push(nums[i])
continue
}


// 判断当前是否连续
if (nums[i] == (temp[temp.length - 1] + 1)) {
// 更新区间的右区间
Expand Down