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
it is not O(n). (item-s in ints[i+1:]) also loops underneath
same problem
How so? I just did it with 4 lines.
That's O(n^2). You are looping through to access each number, then you are looping through the entire list at each number to check if it adds up to the target.
You shouldn't reuse an old kata.
Make a new one from scratch - that way you don't start at 0% from 2 ;)
membership testing for list is
O(n)
so what you describe would beO(n*n)
maybe that's obvious and you're not doing that.
i completely agree!