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.
Done.
Perhaps the intended complexity should be hinted in the description.
No, IIRC the mapping between a letter and a digit is always 1:1.
The intended solution should have
O(logn)
complexity.This is already explicitly stated in the Description, under
Conditions for passing inspection
:Yes, that is allowed. In fact, a valid solution for the example test in the Description is
['NNE','EES','','SS']
No guarantees.