Learn
Practice
Newsletter
Resources
Animations
New
F
Toggle theme
0
F
0
Toggle menu
← Back to All Animations
Reverse Bits
Bookmark
Input
Example 1: 00101011
Example 2: 00001101
Example 3: 10110111
Custom
n
=
43
n
7
6
5
4
3
2
1
0
result
7
6
5
4
3
2
1
0
0
0
1
0
1
0
1
1
algo
master
.
io
Step:
Reverse the 8 bits of n = 43 (00101011): pull bits off the right of n and push them onto the right of result
0 / 26
Input
Example 1: 00101011
Example 2: 00001101
Example 3: 10110111
Custom
n
=
43
0 / 26
n
7
6
5
4
3
2
1
0
result
7
6
5
4
3
2
1
0
0
0
1
0
1
0
1
1
algo
master
.
io
Step:
Reverse the 8 bits of n = 43 (00101011): pull bits off the right of n and push them onto the right of result