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.