7 kyu
Sorting the Odd way!
975 of 1,421iamchingel
Description:
Given an array of numbers, sort them in such a manner that all the odd numbers in the array are sorted in ascending order and the even numbers are sorted in descending order after the last odd number. For example [1,2,3,4,5,6,7,8,9] produces the output [1,3,5,7,9,8,6,4,2]. If the array contains decimals, round them down while checking for odd/even. The output must have the original numbers!
If there are no issues with the kata and you successfully completed it, please rank and upvote!
Fundamentals
Arrays
Sorting
Similar Kata:
Stats:
Created | Oct 10, 2016 |
Published | Oct 10, 2016 |
Warriors Trained | 3116 |
Total Skips | 95 |
Total Code Submissions | 8229 |
Total Times Completed | 1421 |
JavaScript Completions | 975 |
Java Completions | 336 |
Ruby Completions | 137 |
Total Stars | 46 |
% of votes with a positive feedback rating | 91% of 326 |
Total "Very Satisfied" Votes | 280 |
Total "Somewhat Satisfied" Votes | 33 |
Total "Not Satisfied" Votes | 13 |
Total Rank Assessments | 9 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 7 kyu |