by geoelectric · 11y ago · 0 comments
It didn't infer that C. meant to truncate the last name, so everything ended up "John C." No biggie, but trying to figure out what does and doesn't work aside from tokenized string formatting was a bummer. Having the uppercase example led me to believe it could do more types of transformation.
Possible the right answer is hinting of some kind. "Roberto {C.} from Brazil" to hint that the C. should be matched with -something-, and since . naturally means abbreviation would mean "starts with C".
Input:
taco bell 1
mcdonalds 2
wendys 3
bojangles 4
dairy queen 5
Ex: 1. Taco BellOutput:
1. Taco Bell
. Mcdonalds 2
. Wendys 3
. Bojangles 4
5. Dairy Queen
? When I take the spaces out of the restaurants I get:New Input:
tacobell 1
mcdonalds 2
wendys 3
bojangles 4
dairyqueen 5
Ex: 1. TacoBellNew Output:
1. Tacobell
2. Mcdonalds
3. Wendys
4. Bojangles
5. Dairyqueen