← Zoho questions
CodingMedium

Sort even and odd numbers conditionally

Filed under Zoho

Given an array, sort odd numbers in descending order and even numbers in ascending order, while keeping them in their original relative positions (i.e., if an index originally held an odd number, it…

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 Zoho questions

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