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.
Suggestion not specific enough, closing
Sorry, but you're asking something that's been asked and answered several times before, and I referred you to the first one of those not marked as spoiler, I won't copy and paste the same answer all over the place, you should have read the posts already here before asking it again.
Go down, read Daotar's post.
X
denotes the column of the endpoint, or the horizontal point if you will.Y
denotes the row of the endpoint, or the vertical point if you will.With coordinates
(0, 0)
it should be obvious why the minimum path is1
, since you're starting and ending at the same position with the value1
.Here is the minimum path of the grid given before, when the endpoint is in
(0, 1)
:You always start at the upper left corner. Then, each nested array represents a row in the 2D-grid.
In the test-case you're referencing you're given the following grid:
The end coordinate is
x = 0, y = 1
, which is where the4
is in the grid. Therefore the minimum path will be1 + 4 = 5
.