For Cycle Detection, a common approach is by using DFS. But recursion is not good if we think in the context of space. Here I use my algorithm. Actually, this challenge was given by my Algo professor to me. It was fun.
tahmid1999 / cycle-detection Goto Github PK
View Code? Open in Web Editor NEWFor Cycle Detection, a common approach is by using DFS. But recursion is not good if we think in the context of space. Here I use my algorithm. Actually, this challenge was given by my Algo professor to me. It was fun.