We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Components in a graph
Components in a graph
Sort by
recency
|
190 Discussions
|
Please Login in order to post a comment
Typescript solution. it passes all tests. (DFS)
Is it safe to assume number of nodes as bg.size()*n . I need some help in understanding this?
its safe to assume sorry for the confusion
I didnt understand actually.
test
vector componentsInGraph(vector> gb) {
}
Java solution