|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
本帖最后由 新手·ing 于 2017-8-10 08:49 编辑
&名字问题&
My friend wants a new band name for her band. She like bands that use the formula: 'The' + a noun with first letter capitalized.
dolphin -> The Dolphin
However, when a noun STARTS and ENDS with the same letter, she likes to repeat the noun twice and connect them together with the first and last letter, combined into one word like so (WITHOUT a 'The' in front):
alaska -> Alaskalaska
europe -> Europeurope
Can you write a function that takes in a noun as a string, and returns her preferred band name written as a string?
中文版:
答案:
|
|