|
1 | | -<palign="center"><imgsrc="https://user-images.githubusercontent.com/23629340/40541063-a07a0a8a-601a-11e8-91b5-2f13e4e6b441.png"/></p> |
| 1 | + |
2 | 2 |
|
3 | | -# JS | Functions & Arrays |
| 3 | +# LAB | JS Functions & Arrays |
4 | 4 |
|
5 | | -## Learning Goals |
6 | | - |
7 | | -In this exercise you will apply: |
8 | | - |
9 | | -- Array iteration techniques |
10 | | -- 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 grid below!
|
241 | 235 |
|
|
0 commit comments