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.
Welllll .. admittedly, we're four years later. But random tests would be nice.
In Javascript, zero divided by zero is
NaN
and nonzero divided by zero isInfinity
(or-Infinity
, depending on the sign of the nonzero number). Anything modulo (remainder) by zero isNaN
.I absolutely agree with this. I think this would make for much more interesting algorithms, and a more realworld type scenario.
For this size problem, yes: overkill. But, as a kata, it is a natural chance to practice techniques for something bigger.
IMHO even if it's an overkill, it's an elegant one :D.
overkill?
Haha, glad you had fun with it. I've updated the test cases with your suggestion.
Thanks! ;)
Thank you very much, I will add something to the description too.
Lol. I've been focused on trying to get the network connection issues resolved. Do you find the bar useful at all? I'll play around with adding a disable link within the message that pops up. I'm just not sure if the disabled state should persist in memory only (so once you do a full refresh its re-enabled) or if it should persist on that machine (using local storage, although I am not sure where to put some kind of re-enable link in case you wanted it back).
BTW - Glad you are loving the site :)
This comment is hidden because it contains spoiler information about the solution
Yeah, I describe that requirement just so new JS coders scratch their head and think about it for just a moment.
This comment is hidden because it contains spoiler information about the solution