Back to posts
Google logo

Interview experience

Google · Software Engineer · Mid-Level

Community-sourced A factual summary of an interview experience shared publicly outside interviewd.
Nov 1
In Progress

Overall Experience

A phone coding interview on grid path counting with checkpoint constraints, a Googlyness round, and two onsite coding rounds on graph shortest paths and time-ordered connectivity, each with follow-ups. The record does not describe the candidate solutions or the outcome.
4 rounds
I
Posted by interviewd

Interview Process (4 rounds)

Round 1 of 4: Coding / DSA

60 min

Question 1

Medium
Given an n x m grid with rows 0..n-1 and columns 0..m-1, Alice starts at (n-1, 0) and must reach (n-1, m-1). Each move advances exactly one column and can be up-right, right, or down-right; moves that leave the grid are invalid. Count the paths, modulo 1,000,000,007. Follow-up 1: count the paths that visit all given checkpoints. Follow-up 2: checkpoints must be visited in the given order; because each move enters the next column, at most one checkpoint can be visited per column, so return 0 if they cannot be visited in strictly increasing column order. Optimize space.

Input: "n m c", then c lines "r col".
Constraints: 1 <= n, m <= 2000; 0 <= c <= m - 2.

Experience

The record lists the base problem and both follow-ups. The candidate solution is not described.
Loading comments…