InterviewDB Question

Maximum Subgraph: Find the Largest Connected Subgraph Satisfying a Node Constraint

Question Details

Problem Given an undirected graph where each node has a label, find the largest connected subgraph where all nodes share the same label. "Largest" means the most nodes. Example: Follow-ups How does your BFS/DFS handle disconnected graphs (multiple co…

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Coding Phone