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 misunderstood the requirement,
[6, 2]
is the correct answer. That's becauseparsing from the left
pair of[6, 2]
is formed earlier than[3, 5]
. It's not about index difference.Don't mention it, we are all here to learn :)
[Like me, trying to be more precise with English: above it should have been "no number satisfies", ah!]
You return 2 arrays for no reason; plus when no number satisfy the condition, you should just return
[0,0,0]
.