This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn find_single_missing(set: &[u64], total: &[u64]) -> u64 { | |
let mut acc: u64 = 0; | |
for &num in set { | |
acc ^= num; | |
} | |
for &num in total { | |
acc ^= num; | |
} | |
acc | |
} |