can anyone suggest me good problems for bfs and dfs

There is one very nice noble problem on bfs present on Hackerearthâ€¦I forgot its name, but it was like, given a Jee exam, with â€śNâ€ť questions in exam, +a for correct answer to each question, and -b for each incorrect answer, 0<=a,b<=20â€¦ How many different scores are possible ? Such a beautiful problem. Gives TLE by brute-force

1 Like

https://codeforces.com/problemset?order=BY_SOLVED_DESC&tags=dfs+and+similar

Search dfs /bfs problems you will get lots of problems.

cp-algorithms.com contains some nice starting problems

1 Like