# How to learn to solve trees, graphs questions for competitive programming

I learnt about trees and graphs from my textbooks in (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 are kind of problem statement without directly mentioning DFS/BFS to 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 competitions programming like Codeforces?

Please, provide any references such as videos or any site for noobies.