Depth First Search Algorithm.

Правка en2, от nolankeats, 2022-08-09 11:51:39

Yesterday, I came across a question- DZY Loves Chessboard. My first question based on an algorithm. I tried brute force by applying standard 2 loops and all the if else logic, didn't succeed. I then read about dfs and came back to editorial.
I don't think they applied dfs or maybe I didn't understood dfs in first place. But I would really like to learn dfs and solve the related questions. Please provide with some useful links of study material and related questions (with increasing difficulty, if can). As well, if possible point out where I went wrong in my initial logic. Thank you.

Теги #dfs, dfs, dfs and similar, help

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский nolankeats 2022-08-09 11:51:39 8 Tiny change: Tried inserting spaces and line breaks.
en1 Английский nolankeats 2022-08-09 11:50:06 780 Initial revision (published)