1 2 3 4 5 6 7 8 9 10 11
fn main() { println!("Hello, world!"); } struct Solution {} impl Solution { pub fn remove_duplicates(nums: &mut Vec<i32>) -> i32 { nums.dedup(); nums.len() as i32 } }