You are viewing a single comment's thread. Return to all comments →
This is absolutely great! Here, this is same operation in PHP,
function maximizingXor($l, $r) { $xored = $l ^ $r; $most = strlen(decbin($xored)); $bin = ''; for ( $i =0; $i < $most; $i++) $bin = $bin . "1"; return bindec($bin); }
Seems like cookies are disabled on this browser, please enable them to open this website
Maximizing XOR
You are viewing a single comment's thread. Return to all comments →
This is absolutely great! Here, this is same operation in PHP,