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

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

Chomsky's hierarchy Explanation :

Given an array A, find the size of the smallest subarray asked in MountainBlue, 2022