The Algo Blog
Blog on algorithms, puzzles, programming .... musings of a computer engineer.
Reverse the bits of an unsigned integer.
Reverse the bits of an unsigned integer.
Anwer:
Solution 1: The normal loop technique.
Solution 2: Use the lookup table, as used in counting the bits of a unsigned integer.
1
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment