I've been working on this for a couple hours and can't figure it out.
Say you have a 2D grid (one that looks like excel) and it is NxN. The number of columns = the number of rows. What I have to do is count the number of unique paths that you could trace out to go from the bottom left cell, (1, 1), to the top right cell (N, N). You can only move up and to the right.
There must be a way of calculating this but I can't get it. Doing them by hand is a huge pain and very confusing. For a 2x2 grid the answer is obviously just 2. For a 3x3 it's 6 and for a 4x4 I'm pretty sure it's 20. Is there a pattern here...?
Thanks
Say you have a 2D grid (one that looks like excel) and it is NxN. The number of columns = the number of rows. What I have to do is count the number of unique paths that you could trace out to go from the bottom left cell, (1, 1), to the top right cell (N, N). You can only move up and to the right.
There must be a way of calculating this but I can't get it. Doing them by hand is a huge pain and very confusing. For a 2x2 grid the answer is obviously just 2. For a 3x3 it's 6 and for a 4x4 I'm pretty sure it's 20. Is there a pattern here...?
Thanks