Showing posts with label HackerRank::Algorithms::Bit Manipulation. Show all posts
Showing posts with label HackerRank::Algorithms::Bit Manipulation. Show all posts

Sunday, April 26, 2015

HackerRank::Algorithms::Bit Manipulation::Flipping bits

    By simply switching all the bits we will jump from our current position to the exactly mirrored positioned. The value will be max(int) - number, where maximum int is 4294967295.