Ad
  • Custom User Avatar

    And my only problem is too big of an n.

    But that's YOUR problem (as you say), so the kata isn't broken. Label ISSUE is used for things like broken tests or incorrect description, etc. If it is one of those, then you should provide more information about it.

    To be on the safe side, you should be using 'question' label.

    The author is hinting you that your approach is incorrect (he's the only one who can see your current solution AFAIK)

    you brag about how many people passed the test

    :D no. I believe he's showing you these numbers to prove that kata works as intended and many others didn't experience such problems.

    BTW, if you want real-time help from others, you should try using CW discord channel or gitter (check 'forum' section on the left)

  • Default User Avatar

    I have no hope in getting help as the owner doesnt want users to complete his kata.

    I answered your question in a previous post. You said "could be a problem with truncating my solution with std::round...". Because you used "round" I asked if you read the description: the description asks for "truncating", not for "rounding".
    3716 people passed the kata, 401 with C++ so it is perfectly doable and your problem doesn't come from that.

    In fact I looked at your solution and your problem comes from calculating "factorial n" which gives you lots of floating errors. That is not the good way to pass the kata.
    I won't say more since I want that users can pass the kata but without giving them the solution.

    BTW it's not useful to put lots of issues (the problem is not in the kata but in your code) or to downvote my answers (I can do the same...).

  • Default User Avatar

    Did you read the description?

    return the result truncated to 6 decimal places

    Truncating is not rounding.
    I don't see an issue there, your code doesn't follow the description. Note that 401 people passed the C++ kata.

  • Custom User Avatar

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

  • Custom User Avatar

    Since you eventually solved the kata, I close the question :)

  • Custom User Avatar

    if you don't have time to give actual/precise feedback, just don't raise issues, please. In the present case, I can tell you we'd end up with you realizing you forgot or misunderstood something (maybe not about the task, but about the kata setup), and the kata being correct.

    cheers

  • Custom User Avatar

    ... x/

    and why don't you begin with answering my questions? So that we can show you that you're actually wrong about that?

    Mmmmh... I forgot there is something you obviously don't know yet:

    • Issue is for a problem in the kata itself. If it's actually wrong, you using the issue tag would be correct. But thing is... you have to prove that you're correct first. Which is missing so far.
    • Question is the tag to use for anything else that needs a tag and isn't a suggestion.
    • posting the same thing using the suggestion tag would require that you prove there is actually a problem too...

    Don't get me wrong, if you can show me the exact problem, I'd be happy to update what's needed. But so far, you're not proving any change is needed. So, again:

    • language? (python, afaik?)
    • exact input?
    • exact output?
    • assertion message?
    • sample tests or test cases part?
  • Custom User Avatar

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

  • Custom User Avatar