Yahoo India Web Search

Search results

  1. Consider a rat placed at (0, 0) in a square matrix mat of order n* n. It has to reach the destination at (n - 1, n - 1). Find all possible paths that the rat can take to reach from source to destination.

  2. Unique Paths. Medium. There is a robot on an m x n grid. The robot is initially located at the top-left corner (i.e., grid[0][0] ). The robot tries to move to the bottom-right corner (i.e., grid[m - 1][n - 1] ). The robot can only move either down or right at any point in time.

  3. Jul 18, 2024 · Consider a rat placed at (0, 0) in a square matrix of order N * N. It has to reach the destination at (N – 1, N – 1). Find all possible paths that the rat can take to reach from source to destination. The directions in which the rat can move are ‘U' (up), ‘D' (down), ‘L’ (left), ‘R’ (right).

  4. Rat in a Maze Problem - LeetCode Discuss. Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.

  5. Jul 15, 2024 · Consider a rat placed at (0, 0) in a square matrix m [ ] [ ] of order n and has to reach the destination at (n-1, n-1). The task is to find a sorted array of strings denoting all the possible directions which the rat can take to reach the destination at (n-1, n-1).

  6. Consider a rat placed at (0, 0) in a square matrix of order N * N. It has to reach the destination at (N - 1, N - 1). Find all possible paths that the rat can take to reach from source to ...

  7. Understanding the problem. Given a maze [] [] of n * n matrix, a rat has to find a path from source to destination. The left top corner maze [0] [0] is the source, and the right bottom corner maze [n-1] [n-1] is the destination. The rat can move in two directions — right and down.