Skip to main content
added 80 characters in body
Source Link

Given a list of words (letters only) in no particular order, output the shortest string containing every word (disregarding case). Output must be lowercase, except the first letter of each word is uppercase. Input can be in upper, lower, or title case as you prefer. When there are multiple minimal solutions, output one.

Code golf.

Sample data

cow,alligator,seal,orangutan

=> SeAlligatOrangutanCow

fish,hamster,mite,shrimp,dog,cat,termite

=> HamsTerMiteFiShrimpDogCat

cat,a,tonic,catatonic,tat,at

=> CaTATonic

or CATaTonic etc

be,a,very,yellow,beaver

=> BeAVerYellow

clocks,locks

=> CLocks

abc,bca,cab,acb,bac,cba

=> ABCaBACba

clocks,lock

=> CLocks

aaa,a

=> Aaa or AAa or AaA (only)

Given a list of words (letters only) in no particular order, output the shortest string containing every word (disregarding case). Output must be lowercase, except the first letter of each word is uppercase. Input can be in upper, lower, or title case as you prefer. When there are multiple minimal solutions, output one.

Code golf.

Sample data

cow,alligator,seal,orangutan

=> SeAlligatOrangutanCow

fish,hamster,mite,shrimp,dog,cat,termite

=> HamsTerMiteFiShrimpDogCat

cat,a,tonic,catatonic,tat,at

=> CaTATonic

or CATaTonic etc

be,a,very,yellow,beaver

=> BeAVerYellow

clocks,locks

=> CLocks

abc,bca,cab,acb,bac,cba

=> ABCaBACba

Given a list of words (letters only) in no particular order, output the shortest string containing every word (disregarding case). Output must be lowercase, except the first letter of each word is uppercase. Input can be in upper, lower, or title case as you prefer. When there are multiple minimal solutions, output one.

Code golf.

Sample data

cow,alligator,seal,orangutan

=> SeAlligatOrangutanCow

fish,hamster,mite,shrimp,dog,cat,termite

=> HamsTerMiteFiShrimpDogCat

cat,a,tonic,catatonic,tat,at

=> CaTATonic

or CATaTonic etc

be,a,very,yellow,beaver

=> BeAVerYellow

clocks,locks

=> CLocks

abc,bca,cab,acb,bac,cba

=> ABCaBACba

clocks,lock

=> CLocks

aaa,a

=> Aaa or AAa or AaA (only)

added 102 characters in body
Source Link

Given a list of words (letters only) in no particular order, output the shortest string containing every word (disregarding case). Output must be lowercase, except the first letter of each word is uppercase. Input can be in upper, lower, or title case as you prefer. When there are multiple minimal solutions, output one.

Code golf.

Sample data

cow,alligator,seal,orangutan

=> SeAlligatOrangutanCow

fish,hamster,mite,shrimp,dog,cat,termite

=> HamsTerMiteFiShrimpDogCat

cat,a,tonic,catatonic,tat,at

=> CaTATonic

or CATaTonic etc

be,a,very,yellow,beaver

=> BeAVerYellow

clocks,locks

=> CLocks

abc,bca,cab,acb,bac,cba

=> ABCaBACba

Given a list of words (letters only) in no particular order, output the shortest string containing every word (disregarding case). Output must be lowercase, except the first letter of each word is uppercase. Input can be in upper, lower, or title case as you prefer. When there are multiple minimal solutions, output one.

Code golf.

Sample data

cow,alligator,seal,orangutan

=> SeAlligatOrangutanCow

fish,hamster,mite,shrimp,dog,cat,termite

=> HamsTerMiteFiShrimpDogCat

cat,a,tonic,catatonic,tat,at

=> CaTATonic

be,a,very,yellow,beaver

=> BeAVerYellow

Given a list of words (letters only) in no particular order, output the shortest string containing every word (disregarding case). Output must be lowercase, except the first letter of each word is uppercase. Input can be in upper, lower, or title case as you prefer. When there are multiple minimal solutions, output one.

Code golf.

Sample data

cow,alligator,seal,orangutan

=> SeAlligatOrangutanCow

fish,hamster,mite,shrimp,dog,cat,termite

=> HamsTerMiteFiShrimpDogCat

cat,a,tonic,catatonic,tat,at

=> CaTATonic

or CATaTonic etc

be,a,very,yellow,beaver

=> BeAVerYellow

clocks,locks

=> CLocks

abc,bca,cab,acb,bac,cba

=> ABCaBACba

added 24 characters in body
Source Link

Given a list of words (letters only) in no particular order, output the shortest string containing every word (disregarding case). Output must be lowercase, except the first letter of each word is uppercase. Input can be in anyupper, lower, or title case as you likeprefer. When there are multiple minimal solutions, output one.

Code golf.

Sample data

cow,alligator,seal,orangutan

=> SeAlligatOrangutanCow

fish,hamster,mite,shrimp,dog,cat,termite

=> HamsTerMiteFiShrimpDogCat

cat,a,tonic,catatonic,tat,at

=> CaTATonic

be,a,very,yellow,beaver

=> BeAVerYellow

Given a list of words (letters only) in no particular order, output the shortest string containing every word (disregarding case). Output must be lowercase, except the first letter of each word is uppercase. Input can be in any case you like. When there are multiple minimal solutions, output one.

Code golf.

Sample data

cow,alligator,seal,orangutan

=> SeAlligatOrangutanCow

fish,hamster,mite,shrimp,dog,cat,termite

=> HamsTerMiteFiShrimpDogCat

cat,a,tonic,catatonic,tat,at

=> CaTATonic

be,a,very,yellow,beaver

=> BeAVerYellow

Given a list of words (letters only) in no particular order, output the shortest string containing every word (disregarding case). Output must be lowercase, except the first letter of each word is uppercase. Input can be in upper, lower, or title case as you prefer. When there are multiple minimal solutions, output one.

Code golf.

Sample data

cow,alligator,seal,orangutan

=> SeAlligatOrangutanCow

fish,hamster,mite,shrimp,dog,cat,termite

=> HamsTerMiteFiShrimpDogCat

cat,a,tonic,catatonic,tat,at

=> CaTATonic

be,a,very,yellow,beaver

=> BeAVerYellow

Became Hot Network Question
added 20 characters in body
Source Link
Loading
Post Reopened by lyxal code-golf
Post Closed as "Duplicate" by emanresu A code-golf
Source Link
Loading