← Salesforce questions
CodingMedium

Rat in a maze unique path

Filed under Salesforce

Given a 2D grid of size N x N where 1 represents a valid path and 0 represents an obstacle, find and print the unique path from (0,0) to (N-1, N-1).

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 Salesforce questions

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