12 lines
219 B
Rust
12 lines
219 B
Rust
pub fn progress_days(days: &'static [usize]) -> usize {
|
|
let mut progress_days = 0;
|
|
|
|
for i in 1..days.len() {
|
|
if days[i] > days[i-1] {
|
|
progress_days += 1;
|
|
}
|
|
}
|
|
|
|
progress_days
|
|
}
|