RepostedGoogle logo

Google · Onsite

In process

Google New Grad SWE R2 Coding Questions: 1 Experience

Software engineer · New GradMaster's degreeMay 2026
Shared by

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

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

  1. LeetCode 289, Game of Life: Game of Life — In-Place Next Generation. The follow-up asked for the board to be updated in place.
  2. 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

  1. 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.
  2. 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.
  3. The candidate kept one queue for entering and one for exiting, plus the current time and the previous direction.
  4. 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

  1. Both problems were new to the candidate. They talked through their reasoning the whole time and reached the intended solutions.
  2. 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

Sources: Anywhere useful interview info can be found.

0 total reactions. Your reactions: none.
0 comments

Comments

0

No comments yet — be the first to share what you know.