Skip to main content
added 35 characters in body
Source Link
Jordan
  • 11.3k
  • 1
  • 33
  • 55

GNU sed, 19 + 1 = 20 bytes

+1 byte for -r flag.

:
s/\b(\S+ )\1//g
t

Try it online!

GNU sed, 19 bytes

:
s/\b(\S+ )\1//g
t

Try it online!

GNU sed, 19 + 1 = 20 bytes

+1 byte for -r flag.

:
s/\b(\S+ )\1//g
t

Try it online!

Source Link
Jordan
  • 11.3k
  • 1
  • 33
  • 55

GNU sed, 19 bytes

:
s/\b(\S+ )\1//g
t

Try it online!