Ad
  • Custom User Avatar

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

  • Default User Avatar

    The use of the init parameter is not tested. I see at least one solution passed where the numeric value was inserted, while the behaviour of the Array constructor is to set the length of the array to that value.

    In the same line you may want to conform with the Array constructor behaviour when mutliple arguments are given, in which case they are inserted. And then it would be good to also require (and test!) that the Array is sorted at that very moment as well.

  • Custom User Avatar

    What is the behavior of pop/shift on an empty array?