Skip to content

javaval/SortTheOdd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

SortTheOdd

Fundamental Array Problem

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.

Sample Input

sortArray([5, 3, 2, 8, 1, 4]) 

Sample Output

[1, 3, 2, 8, 5, 4]

About

Fundamental Array Problem

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages