Saturday, March 24, 2012

Reverse bits.

code input/output:

input bits: 100101
reversed bits: 101001


Detailed output:

input bits: 100101
1: 1
2: 10
3: 101
4: 1010
5: 10100
6: 101001
reversed bits: 101001


No comments:

Post a Comment