You are viewing a single comment's thread. Return to all comments →
Yes indeed, the solutions in other languages seem pretty crazy.
In C++, I just do
unsigned x; cin >> x; cout << ~x << endl;
Done :D
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 →
Yes indeed, the solutions in other languages seem pretty crazy.
In C++, I just do
Done :D