Input: binary string
Output: binary string that represents the binary input + 1
Example: Given 10111 as an input, output 11000
Limitations: Can't use arithmetic operators or functions (like + - * /)
Criterion: code-golf, the shortest code wins the big imaginary award.
code-golf, but some other ones are commonly used as well. Another problem is that Do X without Y is often problematic. \$\endgroup\$+ - * /and possibly^ %(power and modulus) You should perhaps specify if001should result in010or if10is also ok. \$\endgroup\$