Skip to main content
Question Unprotected by caird coinheringaahing
Question Protected by CommunityBot
added 9 characters in body; edited title
Source Link
sergiol
  • 4.2k
  • 1
  • 17
  • 37

The shortest code to invert bit-wise a binary string

Me thinks there aren't enough easy questions on here that beginners can attempt!

The challenge: Given a random input string of 1's and 0's such as:

10101110101010010100010001010110101001010 

Write the shortest code that outputs the bit-wise inverse like so:

01010001010101101011101110101001010110101 

The shortest code to invert a binary string

Me thinks there aren't enough easy questions on here that beginners can attempt!

The challenge: Given a random input string of 1's and 0's such as:

10101110101010010100010001010110101001010 

Write the shortest code that outputs the inverse like so:

01010001010101101011101110101001010110101 

The shortest code to invert bit-wise a binary string

Me thinks there aren't enough easy questions on here that beginners can attempt!

The challenge: Given a random input string of 1's and 0's such as:

10101110101010010100010001010110101001010 

Write the shortest code that outputs the bit-wise inverse like so:

01010001010101101011101110101001010110101 
Question Unprotected by CommunityBot
Question Protected by CommunityBot
Question Unprotected by DJMcMayhem
Question Protected by CommunityBot
Tweeted twitter.com/#!/StackCodeGolf/status/475493006456287233
edited tags
Link
Dennis
  • 211.7k
  • 41
  • 380
  • 830
Source Link
ToonAlfrink
  • 1.3k
  • 1
  • 9
  • 14

The shortest code to invert a binary string

Me thinks there aren't enough easy questions on here that beginners can attempt!

The challenge: Given a random input string of 1's and 0's such as:

10101110101010010100010001010110101001010 

Write the shortest code that outputs the inverse like so:

01010001010101101011101110101001010110101