Rust solution
I use zip instead windows to prevent bound checking in each pair.\nMaybe I\'m wrong and this is over-optimization)\n\nimpl Solution {\n    pub fn find_subarrays
I use `zip` instead `windows` to prevent bound checking in each pair.\nMaybe I\'m wrong and this is over-optimization)\n```\nimpl Solution {\n    pub fn find_subarrays(nums: Vec<i32>) -> bool {\n        let mut set = std::collections::HashSet::with_capacity(nums.len());\n        nums.iter()\n            .zip(nums[1..].iter())\n            .any(|(x, y)| !set.insert(*x + *y))\n    }\n}\n```
['Rust']