Home
Topics
Practice
Roadmap
DSA Tracker
Code Editor
Tech Blogs
More
Sign in
Get started
Loading question...
Feedback
Unique Paths
Medium
00:00
0 users online
Share
Description
Solution
Submissions
Discussion
Given a grid of size m x n, find the number of unique paths from top-left to bottom-right corner.
Sample Input:
3, 7
Sample Output:
28
Hints
Hint 1
Use dynamic programming to build up the solution
Hint 2
Each cell can be reached from top or left
Hint 3
DP[i][j] = DP[i-1][j] + DP[i][j-1]
Code Editor
Reset
Run
Save
Loading...