# Sort the odd
You have an array of numbers.
Your task is to sort ascending odd numbers but even numbers must be on their places.
Zero isn't an odd number and you don't need to move it. If you have an empty array, you need to return it.
Example
sortArray([5, 3, 2, 8, 1, 4]) == [1, 3, 2, 8, 5, 4]
'매일매일개발 > Codewars' 카테고리의 다른 글
Codewars #5 Take a Number And Sum Its Digits Raised To The Consecutive Powers And ....¡Eureka!! (6kuy) (0) | 2018.03.23 |
---|---|
Codwars #4 Find the unique number (6kyu) (0) | 2018.03.22 |
Codwars #2 Sum of the first nth term of Series (7kyu) (0) | 2018.03.20 |
Codwars #1 Find the missing letter (6kyu) (0) | 2018.03.20 |
Codwars #0 코드워즈 시작 (0) | 2018.03.20 |