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 are thinking as of [row][column] and the solution is [column][row]
Managed to pass all tests except the last one wich exceeds time.
My solution creates the array and then it searches the array in O(n) but creating the array is a O(n^2).
I've seen the other discussions and you gave a hint to check "one step ahead", that the algorithm has to be O(log(n)) and that there can't be a data structure big enough to hold the seq[n] info.
I'm thinking maybe there is no need to create any data structure at all?
Maybe its a recursion of very few steps?
Can you shine a bit of light on me? Thanks, great problem, it's kept me thinking on it these last days