Unique Paths
Updated
Problem statement
A robot starts in the top-left cell of a rows x columns grid and may move only one cell right or one cell down. Return the number of distinct paths to the bottom-right cell.
Function
uniquePaths(rows: int, columns: int) → intExamples
Example 1
rows = 3columns = 7return = 28Every path uses two down moves and six right moves.
Example 2
rows = 1columns = 5return = 1A one-row grid has only the all-right path.
Constraints
1 <= rows, columns <= 20.- The answer fits in a signed 32-bit integer.
More Bloomberg LP Phone Screen questions
- Pascal's TrianglePHONE SCREEN · ONSITE INTERVIEW · Seen Dec 2026
- Valid Triangle NumberPHONE SCREEN · ONSITE INTERVIEW · Seen Dec 2026
- Collatz Conjecture with Shared MemoizationPHONE SCREEN · ONSITE INTERVIEW · Seen Nov 2026
- Word SearchOA · PHONE SCREEN · ONSITE INTERVIEW · Seen Nov 2026
- N-ary Index-Path Encoder and DecoderPHONE SCREEN · ONSITE INTERVIEW · Seen Nov 2026
- Trapping Rain WaterPHONE SCREEN · ONSITE INTERVIEW · Seen Nov 2026
- Fewest Coins CombinationPHONE SCREEN · Seen Nov 2026
- Recommend Films from Viewers Who Watched Everything You DidPHONE SCREEN · Seen Nov 2026
- Track New Values in Sorted OrderPHONE SCREEN · Seen Nov 2026
- Design Browser HistoryPHONE SCREEN · ONSITE INTERVIEW · Seen Oct 2026
Similar questions at other companies
- Unique Grid PathsMorgan Stanley · PHONE SCREENMorgan Stanley interview questions
- Generate One-Two Strings with Sum NGoogle · PHONE SCREEN · ONSITE INTERVIEWGoogle interview questions
- Median of Uniform Draws in an IntervalSusquehanna International Group (SIG) · PHONE SCREENSusquehanna International Group (SIG) interview questions
- Winning Draws for a Mahjong HandZip · PHONE SCREENZip interview questions
- Coin Change IIApple · PHONE SCREEN · ONSITE INTERVIEWApple interview questions
- Count Array DerangementsInMobi · PHONE SCREENInMobi interview questions
- Count Coin Change CombinationsDatadog · PHONE SCREENDatadog interview questions
- Biased Coin: Probability of Exactly h HeadsAkuna Capital · PHONE SCREENAkuna Capital interview questions
- Probability of Consecutive HeadsSquarepoint Capital · PHONE SCREENSquarepoint Capital interview questions
- Minimum Stores for a Shopping ListWhatNot · PHONE SCREENWhatNot interview questions
Bloomberg LP interview experiences
- Bloomberg AI-Assisted Coding Round, All Levels: 14 Experiences
- Bloomberg SWE Intern Interview Questions: 68 Questions
- Bloomberg Interview Questions, Level Not Reported: 65 Questions
- Bloomberg Experienced Design & More: 126 Questions (Part 2 of 2)
- Bloomberg Experienced SWE Interviews: 167 Questions (Part 1 of 2)
- Bloomberg New Grad Coding Questions: 121 Questions (Part 2 of 2)