Google · Onsite
In processGoogle New Grad SWE R2 Coding Questions: 1 Experience
A referred Google new grad SWE candidate's virtual R2 in May 2026 had two coding problems: in-place Game of Life and door-crossing times with priorities.
At a glance
- Process: a virtual R2 with two coding problems.
- Asked recently: Game of Life, in place (LeetCode 289) and Door Crossing Times With Direction Priority (report 01, May 2026).
- Difficulty: both problems were new to the candidate, who still reached the intended solutions with a few corrected slips.
- Practise first: Game of Life — In-Place Next Generation and Door Crossing Times With Direction Priority.
Coverage: 1 report · Software Engineer, New Grad · referral · R2 (virtual) · May 2026.
What came up
A grid simulation with an in-place follow-up, and an event simulation with tie-breaking rules.
Questions we found
Algorithms / Data Structures
| Question | Reports | Last seen |
|---|---|---|
| Game of Life — In-Place Next Generation (LeetCode 289) | 1 | May 2026 |
| Door Crossing Times With Direction Priority | 1 | May 2026 |
1 detailed candidate timeline
01: Game of Life and the door-crossing queue
Report date: May 2026 · Role: Software Engineer, New Grad · Channel: referral · Result: not disclosed
Coding 1: Game of Life
- LeetCode 289, Game of Life: Game of Life — In-Place Next Generation. The follow-up asked for the board to be updated in place.
- The candidate finished the code, a dry run, the follow-up and tests with about five minutes left for questions.
Coding 2: door-crossing times
- The input is sorted by timestamp. Each index is a different person, and each record holds a timestamp and whether they are entering or exiting. Return the time each person crosses the door: Door Crossing Times With Direction Priority.
- Tie rules when several people are ready at once: if someone entered in the previous processed second, entering goes first; if someone exited then, exiting goes first; if the door was idle, exiting goes first; within one direction, the smaller index goes first.
- The candidate kept one queue for entering and one for exiting, plus the current time and the previous direction.
- The first version stepped time one second at a time; the optimization jumped straight to the next input timestamp, giving
O(n)on the sorted input.
How it went
- Both problems were new to the candidate. They talked through their reasoning the whole time and reached the intended solutions.
- The interviewer pointed out a few obvious slips, which were fixed quickly. Round two ended before a full dry run, though detailed examples and edge cases had already been covered.
Common questions
What coding questions are in the Google new grad R2?
In this report, Game of Life with an in-place follow-up and a door-crossing simulation with priority rules (report 01).
Is Google's door problem the same as a LeetCode question?
The report describes it with its own tie rules: entering or exiting priority depends on the previous second, then the smaller index (report 01).
Keep practicing
- Game of Life — In-Place Next Generation: coding 1 in report 01.
- Door Crossing Times With Direction Priority: coding 2 in report 01.
- Google question bank: the Google algorithm questions (sign-in needed).
- Everything Google in one place: the Google interview page and Google hiring insights.
- More firsthand reports: the Experience feed.
Sources: Anywhere useful interview info can be found.
Comments
0No comments yet — be the first to share what you know.