In today's video, we discuss how to go about solving the 'diagonal difference' algorithm problem on hackerrank.com
To be more specific, we focus on writing a for loop with has more than one iterators.
note: for the last return statement, instead of using the if statement to return a positive number, a more convenient way would be using the Math.abs() method to convert the `sum` to its absolute value.
Смотрите видео Solving Hackerrank's Diagonal Difference Problem Using JavaScript онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Happy Coder 20 Февраль 2019, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 7,613 раз и оно понравилось 125 людям.