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.
is
is the only functioning solution; it randomly fails with==
for some reason. ¯\_(ツ)_/¯i missed the 0 case from the rules. My bad.
Including 0 in natural numbers or not is a convention: https://en.wikipedia.org/wiki/Natural_number
You may have learnt it is not. I learnt the contrary. So what?
Moreover this case is explicitly stated in the description, in no way this can be considered an issue.
This is not a kata issue.
0 is not a natural number; however, it's one of the test cases.
'is' is not the same as '=='. Sorry.
is operator checks for object identity. I don't think coupons with same code value should be guarnteed to be identical objects. Thus, the fact that 'is' works is just luck -- the tester passes same objects, that's all