Ad
  • Default User Avatar
  • Custom User Avatar

    The test case is called "returns [] if the list has only one element", not "returns [] if and only if the list has only one element".

    You have to return an empty list if and only if the list/array has zero or one element(s).

  • Default User Avatar

    In the task description, you specify "If you get an empty array/list, return an empty array/list." This is not consistent with the test case "returns [] if the list has only one element." Which is it, an ampty list or a list with one element?