Find Valid Rooms
Asked at Karat · Coding Questions · Difficulty: Medium · Last asked Jul 15, 2026
Given a graph of room paths and a list of treasure rooms, find all rooms that are pointed to by at least two other rooms and also point to a treasure room.
Loading the problem…
More Karat interview questions
- Treasure Rooms Reachable from Any Room in DAG
- Find String Path in Grid Moving Only Right or Down
- Calculate Department Visit Difference for Shopping Lists
- Bus Schedule Management with Priority Boarding
- Assign people to cars based on shortest travel time from two start points.
- Find Word with Anagram Present in Given String