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.
u need to retrieve the pairs with minimum weight difference between them and having the lowest index as well as weight
The description is extremely vague and needs to be reworked with some textual explanation.
Am I wrong or does this not match words ending with a .(fullstop) or ,(comma)?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Can someone explain the task more clearly? I get the summing the digits to find the "weight" part, but after that its not clear what its trying to say. Any help would be appreciated.
Clever solution! I wish I had a thought of resetting for loops with -1s and cross checking animals!
I thought best practices were supposed to be readable?
Basically this.
Correct me if I am wrong, This does not pass n = 0 test, does it?
I don't think its possible to help you without looking at what your code is doing