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 just writing back now. What kind of trick is this?
There's a math trick that'll help you
It's not the sum of the indices what you need to use, read the description again or this post: https://www.codewars.com/kata/54d81488b981293527000c8f/discuss#60aeb44f73e9d2002aff7f34
This comment is hidden because it contains spoiler information about the solution
You should optimize your code :) I faced the same problem and did homework - optimized my loops to decrease timings. So after that I've passed "Attempt" tests too.
Time: 4788ms Passed: 50Failed: 0
Use
print(some_value, flush = True)
I'm passing all "test" cases. But "attempt" cases are hanging without even printing (m & n) for any case (up to timeout).
Can you please check if "attempt" cases are working as expected.
Thanks
The test is ok. The only number of a that's in b is -15.
This comment is hidden because it contains spoiler information about the solution