Ad
  • Custom User Avatar

    Thats what I am returning, I'm returning its @next field. I've tried it both with that and a new EmptyList just to be sure.

    Nevermind, that was the issue. My problem wasn't with the ListNode code, but with the EmptyList push function.

  • Custom User Avatar

    I understand what the error message means, but mine won't pass that one either. I am returning an empty list in that case, I've tested it with my own test cases successfully. I KNOW I am returning an EmptyList and that it returns true for isEmpty(), but still no dice. Anyone else have this issue?