Ad
  • Custom User Avatar

    After first call newAList.RemoveAt(i); lengths of array a and list newAList desync which is a problem because you trying to remove elements from list newAList by indices of elements from array a.