Tiger Analytics | Online assessment | 13th dec 2025 | Algorithms: Sorting Order
Tiger-Analytics · Question · Posted Apr 2026
Question: Algorithms: Sorting Order Problem Statement: You are given an array A of N integers. Sort the array such that: All even numbers are sorted in increasing order. All odd numbers are sorted in decreasing order. The relative positions of the even and odd numbers remain the same. Print the elements of the sorted array in a space-separated format. Function Description In the provided code snippet, implement the provided customSort(...) method to print the elements of the sorted array in ...
The full answer & interview discussion are available to premium members.
Log in Create a free account