1p3a Experience · Feb 2026

Google Onsite Interview Longest Path in Grid Question

SWE Onsite

Interview Experience

I got this question in my Google interview. Can someone let me know the solution for it ? Q: Given a 2D grid, it contains empty spaces (0) and some walls (1) We can enter the grid from any empty cell

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Dynamic Programming Matrix