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.
User solved it (I copied View Solution code and started debugging, but passed Attempt on first try) but didn't bother to close Question afterwards -.-
No problems with Python tests therefore & closing Question.
.
In case of
in
it depends on data structure. Hashmap basedset
anddict
don't iterate items (unless everything has the same hash which is extremely unlikely), butlist
andtuple
do.Either author should specify that blatant
for
shouldn't be used or add tests accodringly to your' suggestion."&z371" is not a continuous string of digits.
It is a question not an issue. It's not a wrong case (notice that 253 people passed the Python kata). You should read the description once more.
fixed
This comment is hidden because it contains spoiler information about the solution
Hi, it has nothing to do with sets, I think it would work the same way with lists...
Notice How D is outside of solve, D is generated only once for the whole battery of tests (kind of a rudimentary memoization).
I think it could be even faster with lists, by taking advantage of order, but since there are not that much evernety nubers, this is not required to solve the problem.
See https://en.wikipedia.org/wiki/Leap_year#Algorithm
Yes, 1900 is not a leap year.
Read the full description.
You're claiming
detail
has twoi
's.How ironic!
yes (with the array longer are of length equal to 3)
OK now.