官术网_书友最值得收藏!

26. Joining strings together separated by a delimiter

Write a function that, given a list of strings and a delimiter, creates a new string by concatenating all the input strings separated with the specified delimiter. The delimiter must not appear after the last string, and when no input string is provided, the function must return an empty string.

Example: input { "this","is","an","example" } and delimiter ' ' (space), output: "this is an example".

主站蜘蛛池模板: 察隅县| 上虞市| 抚远县| 商河县| 万盛区| 时尚| 曲周县| 高清| 文化| 嵊泗县| 泗阳县| 富川| 常熟市| 长沙市| 石林| 吉安县| 怀化市| 安徽省| 本溪| 时尚| 苍梧县| 垫江县| 旌德县| 田林县| 株洲市| 阜康市| 股票| 乌鲁木齐县| 大新县| 和龙市| 南靖县| 察隅县| 南皮县| 治县。| 盐津县| 康乐县| 金坛市| 芜湖县| 乾安县| 五华县| 陈巴尔虎旗|