Why is DFS and BFS so confusing?

Posted by FlashyFail2776@reddit | learnprogramming | View on Reddit | 11 comments

Just started my DSA class at university and I gotta say this DFS thing is not easy at all. I understand the logic but the implementation is something else. The leetcode problem 39 in particular has me so lost. Anyone have advice to get better when you’re starting out with this? (I understand recursion and what not but DFS is tricky)