← Oracle questions

Sort array with even numbers ascending and odd descending

Filed under Oracle

Given an array of integers, sort the array such that all even numbers appear in ascending order at the beginning, followed by all odd numbers in descending order.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Oracle questions

Collected from public candidate posts and coding forums. Updated Nov 2026.