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.
Should that type of cases be considered? And if so, what would be the rules to follow?
??
Might be a bad idea to introduce that, though...
Why are you passing a
string
instead ofnumber
?Description is contradictory - at the start it says:
Then later it says:
Perhaps you could reword the first part as follows: when
x
andy
are both nonzero, return an array of the form["answer", "remainder"]
; otherwise ... (list out each edge case and how to handle them)And the tests are really poorly written. Please compare arrays using
Test.assertDeepEquals
.It's also worth a mention that the "integers" passed in can be extremely huge so ordinary JavaScript arithmetic would not work here. When I attempted this Kata, I assumed that it was for beginners which is not the case.