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.
For JavaScript, no. For TypeScript, yes.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Most sane OOP programer.
Coding IS math.
I solved it in a similar way without opening google.
Why does this not work correctly for values of 10 million and up?
What? Using math knowedge is the best way of solving a problem. This solution is many times simpler and more effecient than any iteration based method.
Shouldn't this return 9 when n is 0, as -1 is congruent to 8 mod 9?
Does javascript recognize 1 == true and 0 == false?
This question is grammatically incorrect, numbers (or at least rationals) on the interval (0,1) should return false not true, it is "half an apple" not "half apples".
This comment is hidden because it contains spoiler information about the solution
Why is this the top rated "best practices" answer? How is it best practices to define a duplicate of an existing primitive operator?