fn main() { println!("Hello, world!"); } struct Solution; impl Solution { pub fn find_lonely(mut nums: Vec) -> Vec { if nums.len() == 1 {return nums;} nums.sort(); let mut result: Vec = nums.windows(3).filter(|arr| (arr[0] - arr[1]).abs() > 1).flat_map(|arr| Vec::from(arr)).collect(); result.dedup(); result } }