Posts

Showing posts with the label atos syntel techmahindra

Arrangement code : asked in tech mahindra march 2022 and Atos Syntel 2022

Image
                                                        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...