1
0
www.mikescher.com/www/statics/euler/euler_015_explanation.md
2017-11-08 17:39:51 +01:00

3 lines
382 B
Markdown

We create a 21x21 grid of the edges in our graph, then we set the value on each edge to the number of possible paths to (0|0).
For the top-left edge this is `1`. For the edges in the first row/column it is also `1`. For every other edge it is the above edge + the left edge.
And in the end we are only interested in the value of the bottom-right edge - this value is our result.