Skip to main content
added 213 characters in body
Source Link
Fyr
  • 631
  • 3
  • 4

Husk, 109 bytes

←fS=UḞzḟS=UḞz:∞ø

Try it online!Try it online!

Explanation

←fS=UḞzfS=UḞz:∞ø
     Ḟz:∞ø  Transpose the input dropping characters of longer strings
 fS=U       Filter out strings  Fold right
     z:      Zip with duplicatesprepend
       ∞ø    TakeInfinite list of empty lists
ḟS=U       Find the first onestring orwithout returnduplicates, returns an empty string if none
ḟ            Return first value satisfying predicate
  =          Equal
 S U         to itself with duplicates removed

Husk, 10 bytes

←fS=UḞz:∞ø

Try it online!

Explanation

←fS=UḞz:∞ø
     Ḟz:∞ø  Transpose the input dropping characters of longer strings
 fS=U       Filter out strings with duplicates
           Take the first one or return an empty string

Husk, 9 bytes

ḟS=UḞz:∞ø

Try it online!

Explanation

fS=UḞz:∞ø
    Ḟz:∞ø  Transpose the input dropping characters of longer strings
            Fold right
     z:      Zip with prepend
       ∞ø    Infinite list of empty lists
ḟS=U       Find the first string without duplicates, returns an empty string if none
ḟ            Return first value satisfying predicate
  =          Equal
 S U         to itself with duplicates removed
added 198 characters in body; added 2 characters in body
Source Link
Fyr
  • 631
  • 3
  • 4

Husk, 10 bytes

←fS=UḞz:∞ø

Try it online!Try it online!

Explanation

←fS=UḞz:∞ø
     Ḟz:∞ø  Transpose the input dropping characters of longer strings
 fS=U       Filter out strings with duplicates
←           Take the first one or return an empty string

Husk, 10 bytes

←fS=UḞz:∞ø

Try it online!

Explanation

←fS=UḞz:∞ø
     Ḟz:∞ø  Transpose the input dropping characters of longer strings
 fS=U       Filter out strings with duplicates
←           Take the first one or return an empty string

Husk, 10 bytes

←fS=UḞz:∞ø

Try it online!

Explanation

←fS=UḞz:∞ø
     Ḟz:∞ø  Transpose the input dropping characters of longer strings
 fS=U       Filter out strings with duplicates
←           Take the first one or return an empty string
added 226 characters in body
Source Link
Fyr
  • 631
  • 3
  • 4

Husk, 10 bytes

←fS=UḞz:∞ø

Try it online!

Explanation

←fS=UḞz:∞ø
     Ḟz:∞ø  Transpose the input dropping characters of longer strings
 fS=U       Filter out strings with duplicates
←           Take the first one or return an empty string

Husk, 10 bytes

←fS=UḞz:∞ø

Try it online!

Husk, 10 bytes

←fS=UḞz:∞ø

Try it online!

Explanation

←fS=UḞz:∞ø
     Ḟz:∞ø  Transpose the input dropping characters of longer strings
 fS=U       Filter out strings with duplicates
←           Take the first one or return an empty string
Source Link
Fyr
  • 631
  • 3
  • 4
Loading