WHEN I am trying the same question in GFG the my output is not coming

Detect cycle in a directed graph

Given a Directed Graph with V vertices (Numbered from 0 to V-1) and E edges, check whether it contains any cycle or not.

QUESTION LINK: https://practice.geeksforgeeks.org/problems/detect-cycle-in-a-directed-graph/1#

Code link: https://ide.codingblocks.com/s/622744

I can’t find this problem in the course content. Please ask doubts related to the problems discussed in the course content.

this is the same question which is explained in this video