Find Valid Rooms
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.
Input:
instructions_room: A 2D list of ...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
