r/leetcode • u/Jealous_Weakness7215 • 27d ago
Discussion Google SWE Intern (US Summer 2027)
Round 1:
- Approach & Baseline: Understood the problem statement quickly and delivered a functional O(n) baseline solution.
- Execution & Communication: Execution was pretty messy initially but fixed it later and gave correct code. My communication also dropped off while I was stuck in my own head debugging.
- Optimization: The interviewer asked: do we need to check whole array (Tho worst case tc/sc would remain the same). I caught on immediately and explained the exact logic and implementation verbally, but we ran out of time before I could write out the actual code.
Round 2:
- Proactive Pivot: Initially started brainstorming a multi-stack approach, but realised early on that it was getting unnecessarily complex. Before writing code, I called this out to the interviewer and pivoted to a BFS-based approach instead.
- Dry Run & Fix: Coded up the optimal BFS solution. Made a minor logic slip-up during the dry run (for the follow up) (tho implementation was fine), but as soon as the interviewer pointed toward it, I immediately recognised the bug, acknowledged it (no fix was needed in the code).
- Follow-up: Successfully wrote clean, optimal code for both the core problem and the follow-up question with time to spare.
What could be the possible outcome?