Question: Design an algorithm (using DFS) to check whether a given undirected graph is a tree or not.
Design an algorithm (using DFS) to check whether a given undirected graph is a tree or not.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
