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

Popular posts from this blog

LCM code tech mahindra 2022

Sum of largest and smallest element in array by tech mahindra 2022

EV Minimize Array Cost asked in Infosys- march 2022 (available in c++ only)