Skip to content

Commit

Permalink
Merge pull request youngyangyang04#1547 from firemaples/patch-1
Browse files Browse the repository at this point in the history
Update 0452.用最少数量的箭引爆气球.md
  • Loading branch information
youngyangyang04 authored Aug 10, 2022
2 parents 1d81697 + fdfddd8 commit 6513db2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions problems/0452.用最少数量的箭引爆气球.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ class Solution {
int count = 1;
//重叠气球的最小右边界
int leftmostRightBound = points[0][1];
for (int i = 1; i < points.length; i++) {
//如果下一个气球的左边界大于最小右边界
for(int i = 1; i < points.length; i++){
if (points[i][0] > leftmostRightBound ) {
Expand Down

0 comments on commit 6513db2

Please sign in to comment.