Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rotting Oranges #164

Open
Anshika-Srivastava opened this issue Oct 18, 2021 · 1 comment
Open

Rotting Oranges #164

Anshika-Srivastava opened this issue Oct 18, 2021 · 1 comment

Comments

@Anshika-Srivastava
Copy link
Contributor

Aim: You are given an m x n grid where each cell can have one of three values:

0 representing an empty cell,
1 representing a fresh orange, or
2 representing a rotten orange.
Every minute, any fresh orange that is 4-directionally adjacent to a rotten orange becomes rotten.

Return the minimum number of minutes that must elapse until no cell has a fresh orange. If this is impossible, return -1.

I would like to provide my C++ code for the above mentioned problem statement. I would like to contribute under Hacktober Fest.
Please assign me this issue.
Thank You!

@Anshika-Srivastava
Copy link
Contributor Author

@Vanshikagarg17 please assign me this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant