Divide and Conquer
190. Reverse Bits
Reverse the 32 bits of an unsigned integer — bit 0 swaps with bit 31, bit 1 with bit 30, and so on. The clean framing is to build the result by pouring bits across: pull the lowest bit off the input…
Loading…
Reverse the 32 bits of an unsigned integer — bit 0 swaps with bit 31, bit 1 with bit 30, and so on. The clean framing is to build the result by pouring bits across: pull the lowest bit off the input…
Loading…