Ritesh Singh
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}
By Ritesh Singh in .NET on Aug 13 2016
  • naveen sharma
    Jul, 2017 4

    //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

    • 1


Most Popular Job Functions


MOST LIKED QUESTIONS