Reverse Bits

Reverse the bits of an 32 bit unsigned integer A.
Thougts
  • 0:00 Sounds like an easy question I should be able to solve in 2 minutes.

  • 7:30 Ok, it was easy enough. DONE.

Short Version:

Time Complexity: O(1)O(1)

Space Complexity: O(1)O(1)​

Last updated