Skip to navigation
Subtract the size number from the vector length
12.06.23
```rust let mut n = p.len() as i32; n = &n - 1; ```
https://doc.rust-lang.org/std/vec/struct.Vec.html#method.set_len
Reply
Anonymous
Information Epoch 1742201278
Save trees.
Home
Notebook
Contact us