+ 1
CHALLENGE: Unique Country Codes
Given a list of countries names like ["australia", "austria", "truky", "turkmenistan", "united kingdom"] Write a program that will output 2 character long unique code for a country like "au" for australia and "as" for austria and so on. Note the first character of the code should also be the first character of the country's name, and the sequence of the code should also follow the sequence of the character in country's name, like for countries with same char: "au" for 1st & "as" for 2nd not "at" or "ar"
5 ответов
+ 3
+ 2
+ 1
Orion (ओरायन)
What should be the output for "united kingdom"? "un" or "uk" ?
+ 1
nice VcC
+ 1
My try 😎 #readable 😜
https://code.sololearn.com/cE5EpK9oVdZ4/?ref=app