Ad
  • Custom User Avatar

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

  • Custom User Avatar

    Reading the error message would help to debug and fix your code:

    Your function should be able to handle floats
    Failed asserting that 'unknown value' matches expected 1.
    Expected: 1
    Actual  : unknown value
    

    Your code returns "unknown value" for floats, it's your code's problem, not a kata issue.

  • Custom User Avatar

    It's not an issue if you don't tell us what the "issue" is!

    If you really think there is an issue, then please provide the language in question, and description about how the kata is wrong. Is there a specific test that is wrong, or some kind of error you're getting?

    Closing due to lack of information. Please read the documentation available before creating issues like this, for example https://docs.codewars.com/training/troubleshooting

  • Custom User Avatar

    Your code is failing the last sample test, please debug your code properly before creating a kata issue.