DEV Community

Tech Dev
Tech Dev

Posted on

Answer: finding cycles in directed graph using algorithm design manual

Good Code, But there is logical error in line no. 57, 58 and 66 (in the code link)

Line no. 57:- check for edge case i < n-1

Line no. 58 and 62:- Return boolean value, returning answer doesn't give correct ans

i. case(in line 58): // Graph should…

https://stackoverflow.com/a/77874082/23167967

Top comments (0)