Reposted
Google · Onsite
In processGoogle 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
- A recent project that was both challenging and interesting, with follow-ups on the problems the candidate ran into (practice).
Coding: cheapest common ancestor
- 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.
- The candidate talked through brute force, defined the
TreeNodeclass, coded the base solution, gave its time complexity, dry-ran an example and proposed test and edge cases. - Time ran out while they discussed ideas and complexity for the optimal solution.
- 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
- Cheapest Common Ancestor: the coding question from report 01.
- Your most challenging project: close to the project question in report 01.
- Google coding question bank and Google behavioral question bank (sign-in needed).
- Google interview guide and Google hiring insights: stages, practice problems and recent hiring signals.
- Experience feed: more interview reports from other companies and roles.
Sources: Anywhere useful interview info can be found.
0 total reactions. Your reactions: none.
0 comments
Comments
0No comments yet — be the first to share what you know.