We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I read your comments and the things i got to learn or i got to revise from it were
1. If I want to flip bits of n I can subtract one from n.
2. If a number is a power of 2, it should be of the form 10000...
Thanks a lot for sharing this brilliant solution.
Counter game
You are viewing a single comment's thread. Return to all comments →
I read your comments and the things i got to learn or i got to revise from it were 1. If I want to flip bits of n I can subtract one from n. 2. If a number is a power of 2, it should be of the form 10000... Thanks a lot for sharing this brilliant solution.