conventions.io

Tech Challenge

2026-10-05

🦀

Daily Tech Challenge

Rust

medium
Question 1 of 5

What does this program print, duplicating part of a vector with Vec::extend_from_within?

Example
fn main() {
    let mut v = vec![1, 2, 3];
    v.extend_from_within(1..);
    println!("{:?}", v);
}

Monday, October 5, 2026 · A new challenge drops every day