Skip to content

Commit

Permalink
Update 0452.用最少数量的箭引爆气球.md
Browse files Browse the repository at this point in the history
  • Loading branch information
fwqaaq authored Mar 29, 2023
1 parent cff523c commit d1ccf8d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions problems/0452.用最少数量的箭引爆气球.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,9 @@ int findMinArrowShots(int** points, int pointsSize, int* pointsColSize){
```Rust
impl Solution {
pub fn find_min_arrow_shots(mut points: Vec<Vec<i32>>) -> i32 {
if points.is_empty() {
return 0;
}
points.sort_by_key(|point| point[0]);
let mut result = 1;
for i in 1..points.len() {
Expand Down

0 comments on commit d1ccf8d

Please sign in to comment.