mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-09 03:34:02 +08:00
Merge pull request #1547 from firemaples/patch-1
Update 0452.用最少数量的箭引爆气球.md
This commit is contained in:
@ -150,6 +150,7 @@ class Solution {
|
|||||||
int count = 1;
|
int count = 1;
|
||||||
//重叠气球的最小右边界
|
//重叠气球的最小右边界
|
||||||
int leftmostRightBound = points[0][1];
|
int leftmostRightBound = points[0][1];
|
||||||
|
for (int i = 1; i < points.length; i++) {
|
||||||
//如果下一个气球的左边界大于最小右边界
|
//如果下一个气球的左边界大于最小右边界
|
||||||
for(int i = 1; i < points.length; i++){
|
for(int i = 1; i < points.length; i++){
|
||||||
if (points[i][0] > leftmostRightBound ) {
|
if (points[i][0] > leftmostRightBound ) {
|
||||||
|
Reference in New Issue
Block a user