Ad
  • Default User Avatar

    your probably doing a comparison wrong. its >7 not =7

  • Default User Avatar

    It is not an issue of the kata. The test are the same in all languages and 5777 guys passed the kata (123 in PHP). Mayve you should have a look at your code?

  • Default User Avatar

    Output strings is equal to test examples, but "Failed asserting that null matches expected". Im stucked.

  • Custom User Avatar
    1. Once you complete and submit your solution, you should be brought to the 'Solutions' tab automatically.
    2. If you click the 'Solutions' tab manually make sure the correct languages is selected (the one you solved it in).
    3. If it says 'Solutions have been withheld...' and you have already completed the Kata, just click 'Unlock solutions'. Your honour (points) and rank have already been added to your account and by clicking unlock nothing should happen.
    4. You should be at step 1. Here you can look at other people solutions. Click the "my solutions" tab or the "compare with your solution" to see your solution.
    5. If you want to complete the Kata again using your other solution as a guide, simply click "Train again" and click "Past solution".

    The 'Solutions' tab on your profile allows you to look at all of your solutions to all the Katas you have completed.

    I hope I helped ;)

  • Custom User Avatar

    Welcome to Codewars!

    You need to return your final solution instead of printing it. Returning a value allows it to be checked for equality, whilst printing it just outputs the value locally to the console. You need to compile your return value into one last statement which will be a string.

    All of the Katas on this website work like this

    Also, (from your other comment) if there is a problem with the Kata/you have a question about the Kata, I suggesting commenting on the Kata and not on the forums (which is for site problems/issues). I recommend using 3 backticks (`) to display your code, read more here.

  • Default User Avatar

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

  • Default User Avatar

    Hi, I just joined and solved my first kata -- which when I view my profile I see as a completed kata. However, I wanted to peruse my solution again, just mainly for curiosity, but when I try to view solutions to this "solved" kata the system says I can't view them since I haven't yet solved the kata. Am I doing something wrong, or is this a bug? Thanks, and cool site.

    UPDATE: Maybe I was doing something wrong - if I click on the kata and then solutions, it says that I can't see them as I haven't solved (though I have); but if I click on my profile, then 'solutions' from my profile, I do see my submitted solution. Maybe that's just the way things work, though it was a bit confusing. Perhaps working as designed?

  • Default User Avatar

    i solved the training module called "mumbling"
    my answer is identical to the solution but its saying its wrong...
    what do i need to do

    import sys
    def accum(s):
    # your code
    i = 0
    j = 1
    while i < len(s):
    a = s[i] * j
    sys.stdout.write(a.title())
    sys.stdout.write("-")
    i += 1
    j += 1