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.
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.