5 kyu
Sort - one, three, two
838 of 2,276dinglemouse
Description:
Hey You !
Sort these integers for me ...
By name ...
Do it now !
Input
Range is
0
-999
There may be duplicates
The array may be empty
Example
- Input: 1, 2, 3, 4
- Equivalent names: "one", "two", "three", "four"
- Sorted by name: "four", "one", "three", "two"
- Output: 4, 1, 3, 2
Notes
- Don't pack words together:
- e.g. 99 may be "ninety nine" or "ninety-nine"; but not "ninetynine"
- e.g 101 may be "one hundred one" or "one hundred and one"; but not "onehundredone"
- Don't fret about formatting rules, because if rules are consistently applied it has no effect anyway:
- e.g. "one hundred one", "one hundred two"; is same order as "one hundred and one", "one hundred and two"
- e.g. "ninety eight", "ninety nine"; is same order as "ninety-eight", "ninety-nine"
Sorting
Strings
Algorithms
Similar Kata:
Stats:
Created | Mar 25, 2016 |
Published | Mar 25, 2016 |
Warriors Trained | 12542 |
Total Skips | 2777 |
Total Code Submissions | 28377 |
Total Times Completed | 2276 |
Java Completions | 369 |
JavaScript Completions | 630 |
C++ Completions | 217 |
C Completions | 136 |
Python Completions | 838 |
C# Completions | 137 |
OCaml Completions | 7 |
Total Stars | 319 |
% of votes with a positive feedback rating | 91% of 427 |
Total "Very Satisfied" Votes | 359 |
Total "Somewhat Satisfied" Votes | 55 |
Total "Not Satisfied" Votes | 13 |
Total Rank Assessments | 8 |
Average Assessed Rank | 5 kyu |
Highest Assessed Rank | 5 kyu |
Lowest Assessed Rank | 6 kyu |