4 ms·Reversing an n-bit number in O(log n) time4 points by ehudt 8y agoanonlastname 8y agoThere is a very good art of computer programming book that has a discussion of bit reversal algorithms