You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Using functions to manipulate and transform arrays
11
5
12
6
## Introduction
13
7
@@ -228,14 +222,14 @@ const words = [
228
222
What is the greatest product of four adjacent numbers? We consider adjacent any four numbers that are next to each other in horizontal, vertical o diagonal.
229
223
230
224
For example, if we have a 5x5 Matrix like:
231
-
225
+
```bash
232
226
[ 1, 2, 3, 4, 5]
233
227
[ 1, 20, 3, 4, 5]
234
228
[ 1, 20, 3, 4, 5]
235
229
[ 1, 20, 3, 4, 5]
236
230
[ 1, 4, 3, 4, 5]
237
-
238
-
The greatest product will be the 20x20x20x4 = 32,000;
231
+
```
232
+
The greatest product will be the `20`x`20`x`20`x`4` = `32000`;
239
233
240
234
Declare a function named `greatestProduct` to find it in the 20×20 grid below!
0 commit comments