---
title: "Discussion on \"Rotting Oranges\" | Hashnode"
description: "Discussion on \"Rotting Oranges\". Problem\nYou are given an m x n grid where each cell can have one of three values: (link)\n\n0 representing an empty cell,\n\n1 representing a fresh orange, or\n\n2 representing a rotten orange.\n\n\nEvery minute, any fresh orange that is 4-directionally adjac..."
url: "https://hashnode.com/posts/rotting-oranges/688faaae9a2092f09833237b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Rotting Oranges](https://chetan77.hashnode.dev/rotting-oranges?utm_source=hashnode&utm_medium=feed)

Problem You are given an m x n grid where each cell can have one of three values: (link) 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 adjac...

Aug 3, 2025 · 4 min read · chetan77.hashnode.dev  
Read the article

-   [#rotting-oranges](https://hashnode.com/tag/rotting-oranges)
-   [#graphs](https://hashnode.com/tag/graphs)
-   [#bfs](https://hashnode.com/tag/bfs)
-   [#graph-traversal](https://hashnode.com/tag/graph-traversal)
-   [#dsa](https://hashnode.com/tag/dsa)

## Written by

[Chetan Datta](https://hashnode.com/@chetan77)

@chetan77 · Hyderabad, India

  
[View profile](https://hashnode.com/@chetan77)

Software Engineer

I share my learnings here. Thanks for reading.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
