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.