Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
    Bounty Ended with 200 reputation awarded by Shaggy
4 added 73 characters in body
source | link

Japt, 8 bytes

¤øT¢ðT ©¢ês¥¢Êz

Based off of Quintec's solution.Thanks to Luis felipe de Jesus Munoz for fixing my submission!

Try it Online!Try it Online!

Old regex-based solution, 15 bytes

¤f/^(1*)0\1$/ l

Returns 1 for true, 0 for false.

Try it Online!

Japt, 8 bytes

¤øT ©¢ês

Based off of Quintec's solution.

Try it Online!

Old regex-based solution, 15 bytes

¤f/^(1*)0\1$/ l

Returns 1 for true, 0 for false.

Try it Online!

Japt, 8 bytes

¢ðT ¥¢Êz

Thanks to Luis felipe de Jesus Munoz for fixing my submission!

Try it Online!

Old regex-based solution, 15 bytes

¤f/^(1*)0\1$/ l

Returns 1 for true, 0 for false.

Try it Online!

3 added 151 characters in body
source | link

Japt, 8 bytes

¤øT ©¢ês

Based off of Quintec's solution.

Try it Online!

Old regex-based solution, 15 bytes

¤f/^(1*)0\1$/ l

Returns 1 for true, 0 for false.

Try it Online!

Japt, 15 bytes

¤f/^(1*)0\1$/ l

Returns 1 for true, 0 for false.

Try it Online!

Japt, 8 bytes

¤øT ©¢ês

Based off of Quintec's solution.

Try it Online!

Old regex-based solution, 15 bytes

¤f/^(1*)0\1$/ l

Returns 1 for true, 0 for false.

Try it Online!

2 added 36 characters in body
source | link

Japt, 15 bytes

¤f/^(1*)0\1$/ l

Returns 1 for true, 0 for false.

Try it Online!

Japt, 15 bytes

¤f/^(1*)0\1$/ l

Try it Online!

Japt, 15 bytes

¤f/^(1*)0\1$/ l

Returns 1 for true, 0 for false.

Try it Online!

1
source | link