prepare expanding sequences by duplicating last value

This commit is contained in:
Baipyrus 2024-01-24 22:50:25 +01:00
parent 630170e636
commit 411784f438

View File

@ -22,6 +22,16 @@ pub fn main() {
}
}
fn expand(strct: &mut Vec<Vec<i32>>) {
let last = strct
.last_mut()
.unwrap();
last.push(*last
.last()
.unwrap()
);
}
fn extra_diff(seq: Vec<i32>) -> Vec<Vec<i32>> {
let mut structure = vec![seq];
let mut index = 0;