Box Blur - Javascript - Code Signal (Detailed Explanation)

Опубликовано: 17 Апрель 2021
на канале: Chascript
1,750
25

00:00 Intro (question (confusing myself))
01:58 Explaining 2nd example given
03:42 Explaining what custom test I'm using
04:16 Starting to solve the challenge
04:55 Explaining the 1st for loop
06:45 2nd for loop
08:00 Explaining the result of the 2nd loop
09:49 image[0] - 2 (2nd loop)
10:00 Explaining the result
10:40 Creating our 3x3 matrix (top)
11:43 Explaining the top of 3x3
12:30 Creating the middle and bottom of 3x3
15:14 Showing the 3x3 matrix
15:45 Add each value in each row together
17:05 Add all totals together and divide by 9
17:41 Math.floor
18:30 Getting the output in the correct format
20:04 Passing custom test
20:27 Final Solution