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.
wouldn't this be O(n) time where n = len(a)+len(b)? if we can assume all the map operations (make, insert, lookup) happen in constant time, then you have one loop over the entire array b and one loop over the entire array a which is O(len(a)+len(b)) = O(n)...
I don't see how this could become O( n(log(m)) ) since you aren't dividing the problem space anywhere (required for log(n))... Am I misremembering how these things work?
This comment is hidden because it contains spoiler information about the solution
Hi xenialugovaya,
It's hard to say without seeing your code and how you used the variable, but basically if you copied the value from playerPlaces out to a new variable (currentPosition) and made any changes to it, you'd need to remember to copy it back into the playerPlaces object after the changes. that's the most likely reason it was failing as far as I can guess without seeing how you used it.
J
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution