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.
Clearly mentioned in the description: Note: Coordinates are marked as x horizontally and y vertically.
You are taking first(which is named as
x
) coordinate as y and second coordinate asx
.In the given sample test and coordinate is (4,2), since the minimum path can be as follows-1,2,3,2,3,2,8
That's a question.
What is the exact example you're talking about?
What's that matrix?
I don't understand that at (4,2) if a minimum path of 21 exist, then why the answer is 24.