Check if There is a Valid Path in a Grid at Robinhood

Medium50.0% acceptance

This problem has 87.5% frequency at Robinhood.

Problem Description

You are given an `m x n` `grid`. Each cell of `grid` represents a street. The street of `grid[i][j]` can be: * `1` which means a street connecting the left cell and the right cell. * `2` which means a street connecting the upper cell and the lower cell. * `3` which means a street connecting t...

Read full problem and hints

Topics


More Robinhood Questions

View all Robinhood questions