Maximizing XOR Discussions | Algorithms | HackerRank
  • [deleted]
    + 3 comments

    It is possible to make a solution O(b) where b is the position of the most significant bit of R

    Hint: L=7,R=8, and mostSignificantBit.