← Nagarro questions

Longest Cheat Way in Tree Seating

Filed under Nagarro

Given a tree representing a classroom seating arrangement with N nodes and a set of designated first bencher nodes to avoid, find the length of the longest simple path in the tree that does not…

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 Nagarro questions

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