5/2/2023 0 Comments Name mashup generator![]() Please include example a set of input & output with your submission Guinea-States of America, Guinea-of America, Guinea-AmericaĬode-golf, so shortest code by byte count wins and will be accepted. United-Bissau, United States-Bissau, United States of-Bissau United States of America, United States of America Trinidad States of America, Trinidad of America, Trinidad America, Trinidad and States of America, Trinidad and of America, Trinidad and America Trinidad and Tobago, United States of America United and Tobago, United States and Tobago, United States of and Tobago, United Tobago, United States Tobago, United States of Tobago United States of America, Trinidad and Tobago Polgeria, Poria, Poa, Polalgeria, Polaria, PolaaĪland, And, Algeland, Algend, Algeriland, Algerind Standard loopholes, as usual, are prohibitedĮxamples with all valid answers for a specific pair: Poland, Algeria.Vowels are a, e, i, o, u, A, E, I, O, U.There are no countries in the list that contain both spaces and dashes.Côte d'Ivoire counts as two words: Côte and d'Ivoire.United States of America and United Kingdom can result in United Kingdom It is okay if the result is the same as one of the input countries, e.g.Your submission should work for at least the countries as shown in this list.Example: Hungary and Hungary will return Hungary 2.Example: United States of America and United States of America will return United States of America 2.Special case 2: If you enter the same country twice, you have to return 2.Example: Spain and Timor-Leste is Spain-Leste.Example: United States of America and Guinea-Bissau can be United States of-Bissau among others.If you split the name at the dash you have to use a dash in the output instead of a space Special case 1: countries containing dashes counts multi-word ones.Example: United States of America and Trinidad and Tobago can be United and Tobago, United States and Tobago, United States of and Tobago, United Tobago, United States Tobago, or United States of Tobago.If both names are multi-word ones then you have to split both of them at one of the word boundaries and then join them together afterwards.Example: France and United States of America is France States of America.Example: United States of America and France is United States of France. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |