LeetCode 1197: Minimum Knight Moves: Python Medium

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

great explanation, also I can hear in your voice that you learned math from Organic Chemistry tutor 😂

ji
Автор

Great idea to reduce the search space!
Now, you can simplify your search to be in just one quadrant always. As the solutions to get to a point are symmetrical, you can just convert the target point to be in the top-right quadrant and then do the search only there.
Check the video "LeetCode 1197. Minimum Knight Moves by Happy Coding"

davit_code
Автор

Do we actually need `seen`? I could use help understanding why we need it. The code passes without it

shleebeez
join shbcf.ru