at 14:00 where is this position sir is storing the parent node values in the parent ??
Doubt in dfs cycle detection
i didn’t understand your Q properly can you please elaborate ?. Bdw one map is taken which stores information if a node is visited or not. If we find a node visited we will return true.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.