Why this is going in TLE

please try to follow the procedure Prateek bhaiya has mentioned in the video using a visited and stack array

I have applied that logic mam … i dont know where i m going wrong … it is giving TLE for back edge containing graph

https://ide.codingblocks.com/s/255109 this code is giving segmentation fault in gfg

please have a look at this code
line 69 isCyclic this is the same as that discussed by bhaiya

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.