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

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".

主站蜘蛛池模板: 双城市| 怀集县| 云梦县| 仙游县| 湘潭县| 东源县| 花莲县| 新丰县| 兴义市| 社旗县| 霍林郭勒市| 鄂托克旗| 调兵山市| 赤水市| 酉阳| 静宁县| 兖州市| 永新县| 闵行区| 军事| 通海县| 抚远县| 南岸区| 武清区| 东宁县| 剑川县| 南开区| 新乐市| 都江堰市| 河源市| 上犹县| 灵璧县| 克山县| 班戈县| 开封县| 台东市| 广宗县| 策勒县| 临湘市| 嘉义县| 田林县|