Arrangement code : asked in tech mahindra march 2022 and Atos Syntel 2022
Question name: Arrangement
Given an array of size n, write a function to rearrange the numbers of the array in such a way that even and odd numbers are arranged alternatively in increasing order. Input Specification: input1: Array size le n input2:(tech mahindra and atos syntel)
Array elements (separated by comma)
Output Specification: Return the updated array...
Comments
Post a Comment