Skip to main content
added 328 characters in body
Source Link
Nitrodon
  • 10.8k
  • 2
  • 19
  • 33

Brain-Flak, 96 bytes

{<<>>(({})<<>>[(([{}<<>>]))]){((<<[[]]>>))}{}{}{}{}<<>>}<<>>{{{}{}{}{}{}}((<<>>){{}{}}){{{}}}}{}

Try it online!

Outputs nothing if the input is perfectly paired, and 0 otherwise.

Non-perfectly paired (original) version:

{<>(({})<>[({}<>)]){((<()>))}{}{}{}<>}<>{((<>))}{}

Try it online!

Brain-Flak, 96 bytes

{<<>>(({})<<>>[(([{}<<>>]))]){((<<[[]]>>))}{}{}{}{}<<>>}<<>>{{{}{}{}{}{}}((<<>>){{}{}}){{{}}}}{}

Try it online!

Outputs nothing if the input is perfectly paired, and 0 otherwise.

Brain-Flak, 96 bytes

{<<>>(({})<<>>[(([{}<<>>]))]){((<<[[]]>>))}{}{}{}{}<<>>}<<>>{{{}{}{}{}{}}((<<>>){{}{}}){{{}}}}{}

Try it online!

Outputs nothing if the input is perfectly paired, and 0 otherwise.

Non-perfectly paired (original) version:

{<>(({})<>[({}<>)]){((<()>))}{}{}{}<>}<>{((<>))}{}

Try it online!

Source Link
Nitrodon
  • 10.8k
  • 2
  • 19
  • 33

Brain-Flak, 96 bytes

{<<>>(({})<<>>[(([{}<<>>]))]){((<<[[]]>>))}{}{}{}{}<<>>}<<>>{{{}{}{}{}{}}((<<>>){{}{}}){{{}}}}{}

Try it online!

Outputs nothing if the input is perfectly paired, and 0 otherwise.