FastPrepMinimum-Step Right-Down Grid Path
Problems/Minimum-Step Right-Down Grid Path

Minimum-Step Right-Down Grid Path

Bloomberg LP logoBloomberg LP● EasyNEW GRADONSITE INTERVIEW

Updated Sep 2026

QuestionFunctionExamplesConstraints

Problem statement

Source note: Reported in a first-hand Bloomberg new-grad onsite with BFS and memoized-DFS discussion. Binary passability supplies the portable grid contract.

In a binary grid, 1 is passable and 0 is blocked. Starting at the top-left, reach the bottom-right using only one-cell Right or Down moves. Return the minimum number of moves, or -1 if unreachable.

Function

minimumRightDownSteps(grid: int[][]) → int

Examples

Example 1

grid = [[1,0,1],[1,1,1],[0,1,1]]return = 4
grid
012010111112011

A path uses two down and two right moves.

Constraints

  • The rectangular grid has at most 10^6 cells.

More Bloomberg LP Onsite Interview questions

  • 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
  • Top K Frequent WordsONSITE INTERVIEW · Seen Nov 2026
  • Trapping Rain WaterPHONE SCREEN · ONSITE INTERVIEW · Seen Nov 2026
  • Design Browser HistoryPHONE SCREEN · ONSITE INTERVIEW · Seen Oct 2026
  • Mutable Stock Price Top KPHONE SCREEN · ONSITE INTERVIEW · Seen Oct 2026
  • Add Two Numbers IIPHONE SCREEN · ONSITE INTERVIEW · Seen Oct 2026
  • Decode StringPHONE SCREEN · ONSITE INTERVIEW · Seen Oct 2026
  • Minimum Replacements to Make Two Strings AnagramsPHONE SCREEN · ONSITE INTERVIEW · Seen Sep 2026

Similar questions at other companies

  • Safest Shortest Path Through a GridSnowflake · OASnowflake interview questions
  • Path Through an O/X Grid Using Only Right and DownAmazon · PHONE SCREEN
  • Drone Delivery with Battery Swap StationsCisco · OACisco interview questions
  • Bleeding InkIndeed · OAIndeed interview questions
  • Largest Diamond of Ones in a GridRippling · PHONE SCREENRippling interview questions
  • Coin ChangeThe Walt Disney Company · OA · ONSITE INTERVIEWThe Walt Disney Company interview questions
  • Flood FillGoogle · ONSITE INTERVIEWGoogle interview questions
  • Number of IslandsFleetx · ONSITE INTERVIEW
  • Number of IslandsIntuit · ONSITE INTERVIEWIntuit interview questions
  • Rotting OrangesSalesforce · ONSITE INTERVIEWSalesforce 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)
All Bloomberg LP interview questionsSee Bloomberg LP hiring insights
Saved
class Solution {
    public int minimumRightDownSteps(int[][] grid) {
      // Write your code here.
    }
}
Checking account…