← Back to companies
[ OK ] Loaded —
[ INFO ]
$ cd
$ ls -lt
01
02
03
04
05
$ ls -lt
01
02
03
04
05
user@intervues:~/$
Given an undirected graph with n nodes (labeled 0 to n-1) and a list of edges, determine if the graph is connected (all nodes can reach each other).