Ad
  • Default 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.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution