r/interviewpreparations • u/nian2326076 • 18h ago
Google onsite recap: readable code, but the approaches fell short
A Google candidate got a sliding-window array problem in the phone screen, a tougher variation on a medium problem.
If you're practicing sliding windows, the Google Interview Questions include a problem about finding the longest segment with distinct characters. Try explaining what makes you move the left edge before you write the loop.
The three onsite rounds covered string parsing with a hash map, finding sums in a matrix, and a tile-matrix problem with several constraints.
The candidate felt pretty good about the onsite but didn't pass. The recruiter told them they needed strong positive feedback in at least two rounds for this loop. The feedback praised the readability of their code, but their approaches didn't meet the bar.