How to find Connected Components and Cycle in a Graph using DFS | CP Course | EP 71

Опубликовано: 16 Март 2026
на канале: Luv
97,434
2k

Graph/Trees Playlist :    • Graph & Trees Course  
FREE COMPETITIVE PROGRAMMING COURSE PLAYLIST :    • Competitive Programming/DSA Course | Hindi  

In this Video i explain how you can find connected components in an undirected graph and how you can find or detect cycle/loop in a graph.

Practice Questions for DFS:
List of Very Good dfs practice Questions(scroll to end) : https://cp-algorithms.com/graph/depth...
https://www.hackerearth.com/problem/a...
https://practice.geeksforgeeks.org/pr...[]=DFS&category[]=DFS&page=1&query=category[]DFSpage1category[]DFS
https://www.interviewbit.com/problems...
https://practice.geeksforgeeks.org/ex...
https://leetcode.com/problems/number-...

Timestamps:
Connected Components: (0:00)
Cycle Detection: (12:08)

Be a part of our awesome Community. Join
○ Discord :   / discord  
○ Telegram : https://t.me/LuvIsMeYT

You can follow me on below platforms for all the latest updates
○ Instagram :   / i._m_.luv  
○ Twitter :   / luvk1412  
○ Linkedin :   / luvk1412  

Blog(Not frequently updated)
○ Blog : https://www.codewithluv.in


Hashtags
#components #cycle #dfs #detection