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.
This comment is hidden because it contains spoiler information about the solution
Is a solution better than O(n^2) even possible?
how does one calculate the sol has O(n^2) ?
Oh yahhh takes 2ms longer than my solution lol
Oddly enough I had to add a .find polyfill, even though it is supposed to run through babel/support es6
This comment is hidden because it contains spoiler information about the solution
Clever, but O(n^2) :(
Yup -- getting submission timeouts on Python kata's
Good point, I like your solution!
This is fine, but ratios.index is doing an iteration over the list per ratio that you're finding, making this O(n^2) in the worst case. That's pretty asymptotically bad.
Also experiencing this problem for a few days. Whenever I click the run tests or submit it times out and the loading bar at the top of the never finishes, and the spinning wheel never stops spinning.
Is this hapening to all people or only a subset of users?
This comment is hidden because it contains spoiler information about the solution