RepostedGoogle logo

Google · Phone screen

In process

Google SWE Round 1, Tree Level Iterators: 1 Experience

Software engineer · New GradMaster's degreeNov 2025
Shared by

Google SWE round 1 coding, November 2025: a level-by-level binary tree iterator, then several independent iterators over one shared tree.

At a glance

Coverage: one Google software engineer candidate (the post's title says internship, its fields say new grad full-time); reported November 2025.

What came up

Topic Reports Last seen
Trees and iterators 1 of 1 Nov 2025
Concurrency follow-up 1 of 1 Nov 2025

Questions we found

Algorithms / Data Structures

Question Reports Last seen
Independent Level Iterators Over a Shared Binary Tree 1 Nov 2025

1 detailed candidate timeline

01: One level at a time

Report date: November 2025 · Role: Software Engineer · Result: passed the coding round

  1. Build an iterator that returns a binary tree one level at a time, without traversing and storing the whole tree first: Independent Level Iterators Over a Shared Binary Tree.
  2. The candidate kept a queue for the current level; each next() returned it and queued the children, so memory tracks the widest level instead of the whole tree.
  3. Follow-up: several iterators read the same tree at once. Each keeps its own queue and position while the tree stays shared and read-only; if the tree could change, they discussed light locking or version snapshots.

Common questions

What tree questions does Google ask in round 1?

Report 01 built a level-order iterator, then supported several independent iterators over one shared tree.

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.