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.
Shorted the description
The fact it asks you to explicitly check type while being unclear on what the test is literally just carping.
That test case is impractical and should just be removed
Besides listing expected answer and computed answer, it would be good the the tests also showed you the input as part of the test, when you go to attempt it
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Ignore this one, go one above for my more optimized solution. This one wastes time because it will recalculate divisors of numbers already ran.
Example [1, 2, 3, 4, 5]
if the diff is one, it will first check if 1 and 2 have the same number of divisors, but then will check if 2 and 3 have the same number of divisors and will call the count divisor function on 2 even though it already calculated that in a previous iteration.