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

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

主站蜘蛛池模板: 新宾| 岳阳县| 九江县| 荆州市| 阜康市| 临江市| 鄂托克前旗| 团风县| 南雄市| 临西县| 江北区| 浑源县| 会理县| 安泽县| 双桥区| 固原市| 岳西县| 九寨沟县| 松桃| 大竹县| 池州市| 兴城市| 永济市| 西乡县| 洪泽县| 麻栗坡县| 阿坝县| 柏乡县| 长治市| 濮阳县| 和林格尔县| 枝江市| 美姑县| 曲水县| 富锦市| 三穗县| 遵义县| 林州市| 德令哈市| 延长县| 华阴市|