Skip to content

Instantly share code, notes, and snippets.

@vptr-0
vptr-0 / find_missing.rs
Created July 11, 2025 17:10
find_missing.rs
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
}