Where and how should I use DFS for leetcode questions that r not trees or graphs?
Like how m I supposed to look at a problem and tell I could use a DFS? For example Numbe