Google Software Engineer interview on graph traversal and chat logs

Google·Software Engineer·Reported Nov 2026
Rejected

I still think about the ring question. I was given a graph as an adjacency list and told it formed a single ring. My job was to list every node in the order it appears around the loop, starting from any node and moving in whichever direction I chose. The interviewer gave very little feedback when I asked clarifying questions, so I had to make my own assumptions about the input and proceed without knowing whether those assumptions matched what he wanted.

I had two virtual coding rounds, each 45 minutes. The first interviewer skipped the introduction entirely and went straight into the problem. He was relaxed and friendly, and it felt more like a conversation than an interview. The second interviewer was far more formal. He asked me to introduce myself, then spent a good chunk of time on my background and projects, asking what inspired each one and what real-world use cases they had. Only after that did we get to the coding question. He seemed to be scoring against a structured rubric, so I tried to narrate my reasoning clearly even when he wasn't responding.

The other question was about a chat log. Each message had a username and a word count, and I needed to return the top N users by total word count in descending order. The natural approach was to aggregate totals per user and then select the top N, which made it feel more like a standard data processing problem than a trick question. The harder part was the ring problem, since it required reasoning about traversal and returning nodes in the correct cyclic order.

I didn't get an offer.

Prep tip from the candidate

Be ready to walk through your projects in depth, including what inspired them and their real-world use cases, before any coding begins. Since one interviewer gave little feedback on clarifying questions, state your assumptions out loud and keep moving rather than waiting for confirmation.

Source: Interview Query. AI-anonymized by the source and lightly edited for clarity.

Published

Curated and edited by PracHub

Discussion

Sign in to join the discussion. The author is notified of every comment.

Loading comments…

Interview at a glance

Company
Google
Role
Software Engineer
Outcome
Rejected
Date
Reported Nov 2026

Related interview experiences

Explore more interview rounds, questions, and outcomes.

Browse interview experiences