You need to sign in or sign up before continuing.×
Ad
  • Custom User Avatar

    I think the problem is the AppendTest in the function displayLinkedList.

    translation: your list is probably cyclical

    More importantly though: when you make an issue, make sure others are able to reproduce the problem. Otherwise you're just saying that your code doesn't work. And that isn't an Issue

    It could be argued that the display function should give up when a list is too long to provide a better error message - in particular because that's a likely mistake that the kata should anticipate instead of crash on.

  • Custom User Avatar

    Maybe you have an infinite loop. but that would be an issue with your code, not with the kata.
    But if it is a problem with the kata, then you need to show how it is reproduced, otherwise it still isn't an actionable issue.

  • Custom User Avatar

    50+55+56 == 161

  • Custom User Avatar

    50 + 56 + 57 == 163

  • Custom User Avatar

    the answer is [50, 55, 58], which sums to 163

  • Custom User Avatar

    PHP? You are wrong.

  • Custom User Avatar

    No, and there are only 3 weird tests in PHP.