[关闭]
@aloyschen 2017-09-27T07:11:58.000000Z 字数 626 阅读 79

CodeWars 刷题总结

CodeWars


Your order, please

Your task is to sort a given string. Each word in the String will contain a single number. This number is the position the word should have in the result.

Note: Numbers can be from 1 to 9. So 1 will be the first word (not 0).

If the input String is empty, return an empty String. The words in the input String will only contain valid consecutive numbers.

For an input: "is2 Thi1s T4est 3a" the function should return "Thi1s is2 3a T4est"

知识点

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注