Maximizing XOR Discussions | Algorithms | HackerRank
  • + 1 comment

    How does a compiler compute 'number of leading zeros' in O(1)? I think this solution is O(b) where b is the index of MSB in a^b