You are viewing a single comment's thread. Return to all comments →
He aprendido sobre el manejo de los sistemas numericos
public static long flippingBits(long n) { string binary = Convert.ToString(n, 2).PadLeft(32, '0'); string flipping = ""; foreach(char d in binary) flipping += d == '0' ? '1' : '0'; return Convert.ToUInt32(flipping, 2); }
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 →
He aprendido sobre el manejo de los sistemas numericos