Skip to main content
added 118 characters in body
Source Link
Polynomial
  • 4.5k
  • 2
  • 24
  • 27

C#, 7070 68 bytes

This is probably not optimal.

68:

Func<uint,uint>f=n=>((n=n>>16|n<<16)&0xFF00FF00)>>8|(n&0xFF00FF)<<8;

70:

uint e(uint n){n=n>>16|n<<16;return(n&0xFF00FF00)>>8|(n&0xFF00FF)<<8;}

Try it online!

C#, 70 bytes

This is probably not optimal.

uint e(uint n){n=n>>16|n<<16;return(n&0xFF00FF00)>>8|(n&0xFF00FF)<<8;}

Try it online!

C#, 70 68 bytes

This is probably not optimal.

68:

Func<uint,uint>f=n=>((n=n>>16|n<<16)&0xFF00FF00)>>8|(n&0xFF00FF)<<8;

70:

uint e(uint n){n=n>>16|n<<16;return(n&0xFF00FF00)>>8|(n&0xFF00FF)<<8;}

Try it online!

Source Link
Polynomial
  • 4.5k
  • 2
  • 24
  • 27

C#, 70 bytes

This is probably not optimal.

uint e(uint n){n=n>>16|n<<16;return(n&0xFF00FF00)>>8|(n&0xFF00FF)<<8;}

Try it online!