RepostedGoogle logo

Google · Onsite

In process

Google Early Career Cheapest Common Ancestor: 1 Experience

Software engineer · New GradMaster's degreeJan 2026
Shared by

Google early career SWE round, January 2026: a project discussion, then the cheapest common ancestor of two tree nodes by price.

At a glance

  • Process: one round: a project discussion, then coding; outcome not shared (01).
  • Asked recently: the lowest-priced common ancestor of two nodes in a tree with parent and child links (01).
  • Difficulty: the candidate finished the base solution, dry run and tests, but time ran out while discussing the optimal version.
  • Practise first: Cheapest Common Ancestor

Coverage: one Google software engineer early career candidate; report January 2026.

What came up

Topic Reports Last seen
Trees and ancestors 1 of 1 Jan 2026
Project discussion 1 of 1 Jan 2026

Questions we found

Algorithms / Data Structures

Question Reports Last seen
Cheapest Common Ancestor 1 Jan 2026

Behavioral (BQ)

Question Reports Last seen
A recent challenging and interesting project (practice) 1 Jan 2026

1 detailed candidate timeline

01: Cheapest common ancestor after a project chat

Report date: January 2026 · Role: Software Engineer, Early Career · Result: not disclosed

Project discussion

  1. A recent project that was both challenging and interesting, with follow-ups on the problems the candidate ran into (practice).

Coding: cheapest common ancestor

  1. Each tree node has a price plus links to its parent and children. Given two different nodes, find the cheapest node among all their common ancestors: Cheapest Common Ancestor.
  2. The candidate talked through brute force, defined the TreeNode class, coded the base solution, gave its time complexity, dry-ran an example and proposed test and edge cases.
  3. Time ran out while they discussed ideas and complexity for the optimal solution.
  4. The candidate did not say whether the root is guaranteed shared or how ties break.

Common questions

What is the Google cheapest common ancestor question?

Given two nodes in a priced tree with parent links, return the cheapest of their common ancestors; report 01 got it in January 2026.

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.