You are viewing a single comment's thread. Return to all comments →
Rust:
fn sumXor(n: i64) -> i64 { let zeros = n.count_zeros() - n.leading_zeros(); 2_i64.pow(zeros) }
Seems like cookies are disabled on this browser, please enable them to open this website
Sum vs XOR
You are viewing a single comment's thread. Return to all comments →
Rust: