← MakeMyTrip questions
CodingEasyReported in a candidate post, Aug 2022

Reachable Nodes With Restrictions

Filed under MakeMyTrip

Given a tree with `n` nodes labeled from `0` to `n - 1` and an array of restricted nodes, find the maximum number of reachable nodes from the root node (0) without visiting any restricted node.

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.