Live Batches
Masterclasses
Menu
Free Courses
Account
Login / Sign Up
Problem Submissions Solution

Unique Path

Difficulty: Hard

Acceptance: 56.00%

Points: 40.00

You are given two integers m and n representing the number of rows and columns of a grid. A robot starts at the top-left cell (0, 0) and wants to reach the bottom-right cell (m-1, n-1). The robot can only move: Right (R) Down (D) Your task is to calculate the total number of unique paths the robot can take to reach the destination. Return the total number of possible paths.

Topics

Companies

Articles

Examples:

N/A

Constraints:
  • 1 = m, n = 15
Companies:
Amazon Microsoft Apple
Topics:
Recursion
Locked Content
Access Restricted: Please Login to access the code editor and test cases.