Google Interview Question for Software Engineers
- 0of 0 votes
People enter and leave a room over the course of a day. Each person has a badge with a unique integer id, which is logged by the security system on enter/exit. Each log entry is an enter record (“E <id>”) or and leave record (“L <id>”) for the given badge id.- gqian3 April 07, 2017 in United States
The room is empty at the beginning and ending of the day, and there are no other ways into or out of the room.
E: Enters the room
L: Leaves the room
Well formed log:
Question: You have a log and write a function to check is it the well formed log or not.
| Report Duplicate | Flag | PURGE
Google Software Engineer
Interview Type: In-Person
Open Chat in New Window