Google Interview Question for Software Engineer Interns
- 1of 1 vote
You are a game developer working on a game that randomly generates levels. A level is an undirected graph of rooms, each connected by doors. The player starts in one room, and there is a treasure in another room. Some doors are locked, and each lock is opened by a unique key. A room may contain one of those unique keys, or the treasure, or nothing.- robert October 24, 2017 in United States
Implement a representation for a level and write code that, given a level and starting room, returns true if the treasure can be reached by the player—likely requiring them to find certain other keys first—or false if there is no solution.
| Report Duplicate | Flag | PURGE
Google Software Engineer Intern Algorithm
Interview Type: Phone Interview
Open Chat in New Window