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…