1
Reply

a1={1,3,5,8}a2={2,4,7,9,,,,,}fill the second array with the help of a1 array.Without using extra memory.Ans:a2={1,2,3,4,5,7,8,9}

Ritesh Singh

Ritesh Singh

8y
524
0
Reply

    //Methodpublic int[] FillArray(int[] a1, int[] a2){Array.Resize(ref a2, a1.Length + a1.Length);for (int i =0,j= a1.Length; i < a1.Length && j