Hello. 👋 This is a brain teaser. The rule is we are only allowed to use the the grid line (the border of each box) to reach the destination . Shortest Path Let's find the shortest path to reach the destination. If we start from the top left, to go diagonally to the bottom right, we will have two options to move, those are: down — right . Other than those, we won't be going on the shortest path. If we start from the bottom left, and we have to reach the top right, then we'll have two options, those are: up — right . I put different colours, green and red, so you can see them. In that example, we have $6$ steps as our shortest path. And therefore to actually get the shortest route is — by counting along the side borders of the grid, or — adding the total rows and columns. Let's generalise the method. For example $3$ by $3$ ($3$ rows, $3$ columns) grid above, the minimum steps from top...
Reflections on ECMAScript (JavaScript), CSS, HTML, Blogger, technical fixes, literature, music, cinema, entertainment in general, the English language, mathematics, history, trousers-related, and curiosities of the realm.