Rivian | Staff Engineer | Coding | Phone Screen

pomatopomato·
Interview Date:November 19, 2025Region:UnspecifiedHiring Team/Org:General Hire

Question: "The Longest Trail" Objective:Given an M by N binary matrix where 0 represents an empty path and 1 represents a wall, find the length of the longest path consisting only of 0s. Constraints: You can move Up, Down, Left, or Right. You cannot visit the same cell twice within a single path. The path can start at any cell containing a 0. No cycles allowed

Sign in to view the full interview experience

Create or use your InterviewDB account to read the full Warren post and all shared details.

Sign in to continue
0

Discussion

0

Log in to post a comment or vote.

Sort by
Loading comments...

Interview Resources

InterviewDB

About InterviewDB

Crowdsourced Interview Question Bank for Job Seekers in Tech/Finance Industry

Copyright © 2026 InterviewDB. Victory is reserved for those who are willing to pay its price.