Skip to content

Commit 0875086

Browse files
authored
Update README.md
1 parent 155b9f9 commit 0875086

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,10 @@ console.log(howManyDog);
255255

256256
In the 20×20 grid below; What is the greatest product of four adjacent numbers in the same direction (up, down, left, right)?
257257

258+
For example for the 08 we have at position [0][0], we will get 98 because we have to multiply 02(right) * 49(down). That´s all because we do not have any number to its left or up.
259+
260+
Another example could the 49 that we have at position [1][1], the product will be 475.398 because we will multiply 02(up) * 99(right) * 49(down) * 49(left).
261+
258262
```javascript
259263
var matrix = [
260264
[08,02,22,97,38,15,00,40,00,75,04,05,07,78,52,12,50,77,91,08],

0 commit comments

Comments
 (0)