I learnt about trees and graphs from my textbooks (undergraduate level) last year.
But now I'm doing competitive programming and unable to solve questions involving these concepts.
I fail to understand that a given question needs DFS or BFS for solving. I know these algorithms, but when it comes to questions which don't directly mention that DFS/BFS should be applied then I'm unable to solve them.
I always run away from these questions because I just know the concepts but fail to reproduce them in my code and have just learnt and never coded.
Can anyone help me in suggesting the path that I should follow to learn to solve such questions that appear in programming competitions like "Codeforces"?
Please, provide any references such as videos or any site for noobies.