Ad
  • Custom User Avatar
  • Custom User Avatar

    But n can be negative.

  • Custom User Avatar

    Hey both - I've added an example unit test to the Go solution. It matches the one in the kata description.

  • Custom User Avatar

    the error appears because no unit tests are written. If you write at least one yourself the error disappears and it compiles. Would be better if at least one test existed by default, tbh.

  • Custom User Avatar

    Is that C#? It fails the last two sample tests too. Read the instructions again, it seems your not doing what they say.

  • Default User Avatar

    There isn't a proper debugger here, but you can debug by using simple print(...) statements and checking where your logic went wrong (after submit)

  • Default User Avatar

    How about trying to debug it in THIS environment? See why it's returning False (maybe your function returns False every time, due to some typo?). Or just post your code here and mark it as spoiler...

    yes, I got True also
    Well, the feedback you posted suggests that you returned False
  • Custom User Avatar

    Downvoting people trying to help you won't get you any help. And, no, claiming your code (which we can't see) works in another environment isn't useful.

  • Default User Avatar

    Please look at your code: 6936 gys passed the Python kata so I am sure there is no problem in the tests.

    Testing for [51, 33, 51, 19] and [2601, 1089, 2601, 361]
    It should work with random inputs too: False should equal True

    It is clear that the answer is True. You didn't pass if you return False. You can verify by hand. Cheers.

    @Chrono79: I am afraid we are wasting our time...

  • Custom User Avatar

    That seems a problem with your code instead, try posting it here using markdown formatting and marking your post as having spoiler content.

  • Custom User Avatar

    Duplicate issue.