You are viewing a single comment's thread. Return to all comments →
C++ (more at https://github.com/IhorVodko/Hackerrank_solutions/tree/master/Algorithms , feel free to give a star :) )
long int flippingBits(long int _num){ return static_cast<long int>(std::pow(2, 32) - 1) ^ _num; }
Seems like cookies are disabled on this browser, please enable them to open this website
Flipping bits
You are viewing a single comment's thread. Return to all comments →
C++ (more at https://github.com/IhorVodko/Hackerrank_solutions/tree/master/Algorithms , feel free to give a star :) )