DevAffan / AffiCodes-Hacktoberfest2024

Make your first Pull Request for Hacktoberfest 2024! Don’t forget to spread the love, and if you find it helpful, consider giving us a ⭐️. This repository includes useful algorithms and code to help beginners, featuring multiple languages and ideas. You’ll also find some beginner-friendly mini projects to get you started!
40 stars 295 forks source link

Proposal : Adding an implementation of the Rat in a Maze Problem in C++. #223

Open AbhijitMotekar99 opened 1 month ago

AbhijitMotekar99 commented 1 month ago

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). Value 0 at a cell in the matrix represents that it is blocked and the rat cannot move to it while value 1 at a cell in the matrix represents that rat can travel through it.

What I’d Like to Do:

AnshDwivedi03 commented 1 month ago

Can you assign it to me @AbhijitMotekar99

AnshDwivedi03 commented 1 month ago

I have done necessary changes and added logic and code kindly merge my pr @DevAffan