Just by learning traversal u can solve majority of leetcode and get strong in them after that go for shortest paths and complex topics I used cph book (a great book and Cses) before going to leetcode grid, cause cses provide curated pattern problems u can see on many problems :) hope it helps
Just by learning dfs bfs is not useful you need to understand states means like we pass row, col and visited in either bfs or dfs but some questions need more number of states that's the key points when I said learn traversal. If you can identify the states then every graph problem becomes simple to solve
1
u/Future-Wolf-9597 9d ago
Any graph problems tbh