Merge pull request #2408 from nullptr-z/master

update 455.分发饼干; 代码报错
This commit is contained in:
程序员Carl
2024-01-23 09:44:59 +08:00
committed by GitHub
2 changed files with 2 additions and 3 deletions

View File

@ -423,7 +423,7 @@ object Solution {
```Rust
impl Solution {
pub fn erase_overlap_intervals(intervals: Vec<Vec<i32>>) -> i32 {
pub fn erase_overlap_intervals(mut intervals: Vec<Vec<i32>>) -> i32 {
if intervals.is_empty() {
return 0;
}
@ -468,4 +468,3 @@ public class Solution
<a href="https://programmercarl.com/other/kstar.html" target="_blank">
<img src="../pics/网站星球宣传海报.jpg" width="1000"/>
</a>

View File

@ -229,7 +229,7 @@ func findContentChildren(g []int, s []int) int {
### Rust
```rust
pub fn find_content_children(mut children: Vec<i32>, mut cookie: Vec<i32>) -> i32 {
pub fn find_content_children(mut children: Vec<i32>, mut cookies: Vec<i32>) -> i32 {
children.sort();
cookies.sort();