Loading RustViz Engine...
Find the element occurring once in an array where all others appear twice using XOR.
This problem is currently in blueprint template mode. Once the concept foundation is finalized, live in-browser WebAssembly compilation and test assertion runners will be enabled here.
pub fn single_number(nums: &[i32]) -> i32 {
nums.iter().fold(0, |acc, &x| acc ^ x)
}