Depth First Search Algorithm.

Revision en2, by 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.

Tags #dfs, dfs, dfs and similar, help


  Rev. Lang. By When Δ Comment
en2 English nolankeats 2022-08-09 11:51:39 8 Tiny change: Tried inserting spaces and line breaks.
en1 English nolankeats 2022-08-09 11:50:06 780 Initial revision (published)