← MakeMyTrip questions

Determine number of friend circles from matrix

Filed under MakeMyTrip

There are N students. Some of them are friends, while some are not. Their friendship is transitive. If student A is a direct friend of student B, and student B is a direct friend of student C, student…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related MakeMyTrip questions

Collected from public candidate posts and coding forums. Updated Nov 2026.