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.
In Python,
bool
is an integer (i.e.,isinstance(True, int) and issubclass(bool, int)
), so they really should be treated as an integer.True == 1 and False == 0
.I would suggest allowing either
1
orNone
as a solution forTrue
, andNone
as the only solution forFalse
.This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
If you were to include negative numbers, you must also include negative divisor. And if
n
is a divisor,-n
is also a divisor, so all numbers would have an even number of divisors, meaning there is no point."Divisors" of a number are usually constricted to positive integers.