You are viewing a single comment's thread. Return to all comments →
my rust approach:
fn sumXor(n: i64) -> i64 { 2i64.pow(n.count_zeros() - n.leading_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 →
my rust approach: