feat: fmt

This commit is contained in:
daniel.w 2024-06-25 07:16:53 +08:00
parent 855aa90d74
commit 3afb78c3b9
5 changed files with 31 additions and 19 deletions

View File

@ -21,6 +21,4 @@ fn max_positive_or_negative_count(nums: Vec<i32>) -> i32 {
} }
pos.max(neg) as i32 pos.max(neg) as i32
} }

View File

@ -59,8 +59,8 @@ pub fn min_sub_array_len(target: i32, nums: Vec<i32>) -> i32 {
fn min(val_1: i32, val_2: i32) -> i32 { fn min(val_1: i32, val_2: i32) -> i32 {
if val_1 > val_2 { if val_1 > val_2 {
return val_2 return val_2;
} }
return val_1 return val_1;
} }

View File

@ -0,0 +1,6 @@
[package]
name = "fast_slow_pointer_26"
version = "0.1.0"
edition = "2021"
[dependencies]

View File

@ -0,0 +1,8 @@
fn main() {
println!("Hello, world!");
}
pub fn remove_duplicates(nums: &mut Vec<i32>) -> i32 {
let mut slow_pointer :usize= 0;
let mut fast_pointer:usize=0;
}