Backtracking Episode 2: N Queens

preview_player
Показать описание
- The Backtracking Series:
English Version:

Chinese Verison:

Thanks in advance. :D

Happy coding every day!
(I trimmed this video, as my network has some problems. So you will not see the submission details.)
Рекомендации по теме
Комментарии
Автор

Wow, this was on my nerves for last few hours, your explanation helped me to understand and walkthrough.. Thank you

karivepaku
Автор

I like the way u debug the code...It has helped a lot ...Thanks

sandeepdawre
Автор

How excellent you are! I come from Bilibili, I would like to hear you teach with english.

jllee
Автор

Could you explain the directions we are checking with the isValid function. I know we need to check if there is a queen in each diagonal, row, or column but I do not see why we cannot check going from left to right in the first loop you seem to go from right to left

MrWolfgangWeiss
Автор

First of all thank you for this video really appreciate it! I am confused when recursively we call function after choosing and unchoosing and calling function recursively again without the chosen position. In this problem we just call function recursively once while in other backtracking ones we call it after unchoose as well. Is it because of the iteration of going through each col ?

rsmahi