Skip to main content
deleted 7 characters in body
Source Link
Riley
  • 11.7k
  • 2
  • 22
  • 53

Brain-Flak, 7 bytes

#)]}{[(

Try it online!

Reversed:

([{}])#

Try it online!

Note: Only works in interpreters that support comments (e.g. works in Rain-Flak, but not in BrainHack)


If we also swap opening/closing brackets instead of just reversing the bytes we can do this in 108 bytes without using comments:

({}<>[[{}])

Try it online!Try it online!
Try it reversed!Try it reversed!

Brain-Flak, 7 bytes

#)]}{[(

Try it online!

Reversed:

([{}])#

Try it online!

Note: Only works in interpreters that support comments (e.g. works in Rain-Flak, but not in BrainHack)


If we also swap opening/closing brackets instead of just reversing the bytes we can do this in 10 bytes without using comments:

({}<>[{}])

Try it online!
Try it reversed!

Brain-Flak, 7 bytes

#)]}{[(

Try it online!

Reversed:

([{}])#

Try it online!

Note: Only works in interpreters that support comments (e.g. works in Rain-Flak, but not in BrainHack)


If we also swap opening/closing brackets instead of just reversing the bytes we can do this in 8 bytes without using comments:

({}[{}])

Try it online!
Try it reversed!

added 434 characters in body
Source Link
Riley
  • 11.7k
  • 2
  • 22
  • 53

Brain-Flak, 7 bytes

#)]}{[(

Try it online!

Reversed:

([{}])#

Try it online!

Note: Only works in interpreters that support comments (e.g. works in Rain-Flak, but not in BrainHack)


If we also swap opening/closing brackets instead of just reversing the bytes we can do this in 10 bytes without using comments:

({}<>[{}])

Try it online!
Try it reversed!

Brain-Flak, 7 bytes

#)]}{[(

Try it online!

Reversed:

([{}])#

Try it online!

Note: Only works in interpreters that support comments (e.g. works in Rain-Flak, but not in BrainHack)

Brain-Flak, 7 bytes

#)]}{[(

Try it online!

Reversed:

([{}])#

Try it online!

Note: Only works in interpreters that support comments (e.g. works in Rain-Flak, but not in BrainHack)


If we also swap opening/closing brackets instead of just reversing the bytes we can do this in 10 bytes without using comments:

({}<>[{}])

Try it online!
Try it reversed!

added 107 characters in body
Source Link
Riley
  • 11.7k
  • 2
  • 22
  • 53

Brain-Flak, 7 bytes

#)]}{[(

Try it online!

Reversed:

([{}])#

Try it online!

Note: Only works in interpreters that support comments (e.g. works in Rain-Flak, but not in BrainHack)

Brain-Flak, 7 bytes

#)]}{[(

Try it online!

Reversed:

([{}])#

Try it online!

Brain-Flak, 7 bytes

#)]}{[(

Try it online!

Reversed:

([{}])#

Try it online!

Note: Only works in interpreters that support comments (e.g. works in Rain-Flak, but not in BrainHack)

Source Link
Riley
  • 11.7k
  • 2
  • 22
  • 53
Loading