feat: fmt
This commit is contained in:
parent
855aa90d74
commit
3afb78c3b9
|
@ -21,6 +21,4 @@ fn max_positive_or_negative_count(nums: Vec<i32>) -> i32 {
|
||||||
}
|
}
|
||||||
|
|
||||||
pos.max(neg) as i32
|
pos.max(neg) as i32
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
|
@ -0,0 +1,6 @@
|
||||||
|
[package]
|
||||||
|
name = "fast_slow_pointer_26"
|
||||||
|
version = "0.1.0"
|
||||||
|
edition = "2021"
|
||||||
|
|
||||||
|
[dependencies]
|
|
@ -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;
|
||||||
|
}
|
Loading…
Reference in New Issue