Leetcode 62. Unique Paths
Count the number of distinct monotonic paths from the top-left to the bottom-right of an m×n grid when you may only move right or down. This is the classic lattice-path problem — the answer equals binomial coefficient C(m+n-2, m-1) (or can be computed with DP); m,n ≤ 100 and result ≤ 2·10^9.
Asked at:
Microsoft
Amazon
Meta
Oracle
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Mid March, 2026
Meta
Senior
Its not just unique paths count, its print all paths. So problem is this complexity is not O(n2) but O(2^n) and we shouldnt use memoization as it will MLE.
Late November, 2025
Oracle
Senior
Early November, 2025
Mid-level
Hello Interview Premium
Your account is free and you can post anonymously if you choose.