+ 2
How to sort only odd elements in array, evens stay where they are? Thanks.
1 ответ
+ 3
When this is true, your loop is infinite.
if(arr[min] % 2 == 0)
continue;
And you are missing {} for inner if block..
Correct these, and find next.. hope you can.