โ† Deloitte questions

Longest Path in a 2D Matrix with Obstacles

Filed under Deloitte

Given a 2D matrix containing a source node, target node, and obstacles, find the longest path from the source to the target.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Deloitte questions

Collected from public candidate posts and coding forums. Updated Nov 2026.