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.
Removed all the non integer / non positive tests.
The solution for
True
is1
(orTrue
sinceTrue == 1
);None
is wrong.heheehhe :)
OMFG! This must be the enterprise version! ;-)
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.