Open 19bce502 opened 3 years ago
I would like to provide the solution in c++ . I am a LGM-SOC participant
@Saurabh4626 , @Ayush7614 I'd like to work on this issue in Python language. Under HCSSoC21 label. Time complexity : O(V+E) Space Complexity : O(V) where V is vertices and E is edges in the graph.
AIM:
This is the GFG problem Medium Level Given an undirected graph with V vertices and E edges, check whether it contains any cycle or not.
Please Assign this to me under LGM SOC .
Details
We have to write the code which takes V denoting the number of vertices and adjacency list as input parameters and returns a boolean value denoting if the undirected graph contains any cycle or not.
Programming language