Aspiring Minds interview question

Graph islands problem.

Interview Answer

Anonymous

Jun 25, 2020

I know the answer using bfs.