Reposted
Google · Onsite
In processGoogle New Grad Onsite Filesystem and Connectivity: 1 Experience
Software engineer · New GradBachelor's degreeApr 2026
Shared by
Google new grad SWE in-person onsite, spring 2026: filesystem total size with caching, then friendship connectivity with breakups; passed.
At a glance
- Process: two back-to-back in-person coding rounds with a short break → passed the onsite (01).
- Asked recently: total file size under a directory tree, and friendship connectivity where friendships can also break (01).
- Difficulty: the breakup follow-up is fully dynamic connectivity; with little time left the candidate fell back to DFS and felt it had big gaps.
- Practise first: Filesystem Entity Total Size and Dynamic Friendship Connectivity.
Coverage: one Google software engineer new grad candidate; in-person onsite reported April 2026.
What came up
| Topic | Reports | Last seen |
|---|---|---|
| Trees and recursion with caching | 1 of 1 | Apr 2026 |
| Union-find and dynamic connectivity | 1 of 1 | Apr 2026 |
Questions we found
Algorithms / Data Structures
| Question | Reports | Last seen |
|---|---|---|
| Filesystem Entity Total Size | 1 | Apr 2026 (report date) |
| Dynamic Friendship Connectivity | 1 | Apr 2026 (report date) |
1 detailed candidate timeline
01: Filesystem sizes and friendships that break
Report date: April 2026 · Role: Software Engineer, New Grad · Result: passed the onsite
Coding 1: filesystem total size
- The input is a strict tree: a file has a
sizeand no children; a directory has children and no size of its own. Given the root, return the total size of all files below it: Filesystem Entity Total Size. - The candidate first added cycle detection, since real filesystems can have hard links, then removed it once the interviewer said the input is a strict tree.
- Follow-ups: time complexity, caching subtotals for repeated queries, and whether cache lookups could be faster still. Afterwards the candidate thought an iterative version might also have helped.
Coding 2: friendship connectivity with breakups
- The base task was friendship connectivity, solved with Union-Find: Dynamic Friendship Connectivity.
- Follow-up: friendships can break, which makes it fully dynamic connectivity. With little time left, the candidate kept the original graph and used DFS, and felt the answer had major gaps.
- Readers later discussed offline segment trees and rollback DSU. The candidate agreed rollback DSU looked best, while saying they did not know it during the interview.
- The second interviewer gave little feedback, so the candidate thought the loop went badly; they later updated to say they passed.
Common questions
What is the Google filesystem size interview question?
Sum all file sizes under a directory tree; report 01 then got follow-ups on caching subtotals.
How do you handle broken friendships in the Google connectivity question?
Report 01 used DFS under time pressure; readers later pointed to rollback DSU or offline segment trees.
Keep practicing
- Filesystem Entity Total Size and Dynamic Friendship Connectivity: the two onsite questions from report 01.
- Google coding 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.