Skip to content

marta-pylypchuk/codewars-reverse-the-bits-in-an-integer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Write a function that reverses the bits in an Integer. For example, the number 417 is 110100001 in binary. Reversing the binary is 100001011 which is 267.
We can assume that the number is not negative.