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.
I'm a 100% sure I made a solution that's not O(n^2). I've tried it on my machine with a test case of list of 120K random numbers ranging from -1000 to 1000. The solution took about 14 seconds, and with the normal solution (from the standard kata, which is O(n^2)) it took more than 2 minutes.
This kata is surely hard, I'll try to make 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
why did you stop at 2520? there were no constraints in the problem, and the number 2520 isn't common, it's usually a power of 10 or power of 2
bruuuuh XD
Thanks! A great thing to know about for beginners in python.
expected:<1.307530663082039E16> but was:<1.3075306630820394E16>
bro...