6 kyu
Your order, please
19,207 of 177,825iamstone
Description:
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.
Examples
"is2 Thi1s T4est 3a" --> "Thi1s is2 3a T4est"
"4of Fo1r pe6ople g3ood th5e the2" --> "Fo1r the2 g3ood 4of th5e pe6ople"
"" --> ""
Strings
Fundamentals
Similar Kata:
Stats:
Created | Aug 7, 2015 |
Published | Aug 7, 2015 |
Warriors Trained | 336564 |
Total Skips | 46372 |
Total Code Submissions | 548772 |
Total Times Completed | 177825 |
Python Completions | 69606 |
JavaScript Completions | 67533 |
Java Completions | 19207 |
Rust Completions | 2052 |
Haskell Completions | 1277 |
TypeScript Completions | 3789 |
C# Completions | 10117 |
R Completions | 211 |
Scala Completions | 549 |
Ruby Completions | 3601 |
Julia Completions | 82 |
Lua Completions | 199 |
C Completions | 519 |
COBOL Completions | 6 |
Factor Completions | 11 |
Go Completions | 1209 |
D Completions | 5 |
Groovy Completions | 19 |
Total Stars | 4122 |
% of votes with a positive feedback rating | 91% of 14787 |
Total "Very Satisfied" Votes | 12464 |
Total "Somewhat Satisfied" Votes | 2130 |
Total "Not Satisfied" Votes | 193 |