Ad
  • Custom User Avatar

    Not an issue

  • Custom User Avatar

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

  • Custom User Avatar

    Thanks for the hint,good kata

  • Custom User Avatar

    It stopped halfway probably because there are around 400+ tests.

  • Custom User Avatar

    There is no issue. The kata explicitly states that .25 should be rounded up. The top answers you see work in python 2 before python changed the way round() works in python3, but that doesn't mean the kata requirements are different.

  • Custom User Avatar

    I wanted to create a kata and loved the insert example helped me understand things better, my language is python.
    I would like to see a kata in its raw form like i want to see example test cases too, the random ones.
    Or a link to a site where i can learn this or videos anything is appreciated thanks

  • Custom User Avatar

    Thank you so much i now remember learning this long ago,thanks for refreshing my memory

  • Default User Avatar

    Without knowing the exact context of the language and kata you're talking about it's hard to say for sure, but it does make sense since print() and return should have different features.
    print() prints the output to console (so that we as the user can read it) while return actually returns the value to whereever the function was called. E.g. the function
    int multiply (int a, int b ){...} (in C++)
    should use return so that in other places of your program you can use statements like
    c = multiply( a, b );
    and c will actually be assigned the value a times b. If you used print() inside the function, then that value would just be printed but not assigned to c. The test cases most likely check for the return value of the function, so print() does not fulfill the test conditions.

  • Custom User Avatar

    I don't know where to post this question and it's quite silly but why is it that sometimes when the answer matches
    exactly yet the test cases doesn't accept it because i used print() instead i use return then and it works anyone could help me understand why?

  • Custom User Avatar

    I've got to rank 5 kyu when I was around 310 honor, and that was doing mostly 8 kyu problems with a sprinkling of higher level problems.

  • Custom User Avatar
  • Custom User Avatar

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

  • Default User Avatar
  • Custom User Avatar

    Make sure you submit final right after you submit your solution. I've noticed not doing it that way sometimes doesn't show my solution where you say.

  • Custom User Avatar

    There is a known bug (reported here) which makes your solutions sometimes not appear on solutions page. But it usually does not prevent you from getting Honor. I will take a look and check if there's something wrong with your solutions, but I can already see that 7 of them failed grouping and do not appear on solutions page.

  • Loading more items...