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.
You need not to go from
1
up ton
. You should find an optimal stopping point / upper-boundary where you can obtain all the divisors ofn
.Also, doing
index
in a list is at worst O(N^2) andrange
withinrange
withinrange
is O(N^3), thus your solution times out.This comment is hidden because it contains spoiler information about the solution
list(range(n2))
If you're using a generator expression in a
for
loop you should not turn it into a list. Making a list of size2**200
is not a good idea.This comment is hidden because it contains spoiler information about the solution
I'd have to look at your code, but it looks like you made a list of a list of a list. What language?
This comment is hidden because it contains spoiler information about the solution
Thank you! That's damn smart.
could you explain the 'None not in'? Im not sure I fully grasp that.