Knight Moves - 2026-01-17 - Bonus - FreeCodeCamp Daily Challenge
Автор: Dave Cross 🇨🇦
Загружено: 2026-01-17
Просмотров: 3
Описание:
This is a quick addition to my previous video about the "Knight Moves" challenge. I take a couple minutes to make it even more performant and clean up some unnecessary code.
Today, I take on "Knight Moves", a challenge to determine how many moves are available to a knight on a standard chess board. The nice thing here is how we transform the chess notation into a indexes that match our search array with no looping.
Part of my goal of completing every FreeCodeCamp daily challenge for a year, This is just one solution, not every solution. If you have one that you like better, please share it in the comments.
---
Links:
FreeCodeCamp Challenge: https://www.freecodecamp.org/learn/da...
Chess Knight on Wikipedia: https://en.wikipedia.org/wiki/Knight_...)
`charCodeAt()` on MDN: https://developer.mozilla.org/en-US/d...
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: