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.
maybe some ghosts
"Your classmates asked you to copy some paperwork for them. You know that there are 'n' classmates and the paperwork has 'm' pages."
Test case: n = -5, m = -5
In what scenario would 5 minus classmates would ask me for 5 minus copies, am I imagining having friends?!
Hello, on Codewars suggestions are not meant to give hints to other users (this would be spoiling the kata for them), but rather to suggest improvements to the kata.
This comment is hidden because it contains spoiler information about the solution
Not a kata suggestion, closing :-)
Please, don't post solutions in Discourse.
This comment is hidden because it contains spoiler information about the solution
-1 + 0 = -1 + 1 = 0 + 2 = 2
I've begun learning Python coming from doing a lot of data analytics with Excel and so I approached this with the logic I would there:
if n or m is less than 1 (in other words 0 or less) return 0, otherwise multiply n & m.
For some reason it's implying that the first case (5 and 5) are both less than 1 and returning 0 when it should be 25. I have no idea why.
Edit: I've just realised you can't specify n or m <1. It has to be n <1 or m <1
Perl translation
Perl translation
for -5,-5 your first condition true, hence function return 25. which is wrong answer
This comment is hidden because it contains spoiler information about the solution
Loading more items...