2.94K subscribers
7 photos
4 files
237 links
This channel is all about programming. Happy coding :)
Download Telegram
Day-11: (Solution)
Graph Valid Tree
Leetcode #886

Read : When can we call a Graph as TREE ?
SOLUTION code: https://gist.github.com/SuryaPratapK/e9d3dc3063b8c64805ff8adbfcf4cef5
Steps:-
A graph is TREE when:-
1 It is connected (has only 1 component)
2 It has no cycle

Please try the problem yourself and read the properties for a GRAPH to be called a tree ๐Ÿ™‚


#30DaysOfGraph #techdose #interviewpreparation #graphs #dsa
Channel photo updated