Main Navigation
Share your interview in your own words — our AI handles the rest. Hardly takes 2 minutes.
Practice mock interviews or book a 1:1 call for career guidance, resume reviews, and more.
AI interview prep powered by real interview data.
Connect with us on social media
Interview experiences & questions tagged Disjoint Set Union
Determine the number of islands in a grid using the Disjoint Set Union (DSU) method. Initially treat every cell as water and progressively convert cells into land. Increase the island count as land cells are added and use union operations for adjacent land cells. The discussion includes implementation of DSU, union by rank/size, path compression, and various time and space complexities.
Coming Soon