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

Stats:

CreatedOct 10, 2016
PublishedOct 10, 2016
Warriors Trained3116
Total Skips95
Total Code Submissions8229
Total Times Completed1421
JavaScript Completions975
Java Completions336
Ruby Completions137
Total Stars46
% of votes with a positive feedback rating91% of 326
Total "Very Satisfied" Votes280
Total "Somewhat Satisfied" Votes33
Total "Not Satisfied" Votes13
Total Rank Assessments9
Average Assessed Rank
6 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
7 kyu
Ad
Contributors
  • iamchingel Avatar
  • SithFire Avatar
  • PG1 Avatar
  • JohanWiltink Avatar
  • nekokat Avatar
  • Voile Avatar
Ad