Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
checks for negative numbers
Thanks, @Chrono79.
And indeed, at the end of the line entered by the test, there was a line break symbol.
Read this: https://www.codewars.com/kata/515decfd9dcfc23bb6000006/discuss#638a55bb60d8280027719bf8
It's not exactly the same, one of tests has trailing space.
This comment is hidden because it contains spoiler information about the solution
for this case it won't matter if you use == or ===
It seems to me that kyu lvl does not match at least for python)
There is not much need for "if" here
Try to solve in C
This comment is hidden because it contains spoiler information about the solution
Same in R, if I'm not mistaken.
My scala code passes all the tests expect when n=100000 since answer is too large to be displayed as an integer. Can someone explain how you're supposed to return an integer that is too large to be returned?
Hi, bro! Reset the code and noticed that it was necessary to write code in the function, not enter values through the input and output the answer, not print. Everything went well!
This often means you're missing a closing bracket
Hi! How is this problem solved with the local compiler?
EOFError: EOF when reading a line