---
title: "Discussion on \"LeetCode 994: Rotting Oranges — Step-by-Step Visual Trace\" | Hashnode"
description: "Discussion on \"LeetCode 994: Rotting Oranges — Step-by-Step Visual Trace\". Given a 2D grid representing oranges where 0=empty, 1=fresh orange, 2=rotten orange, determine the minimum time in minutes for all fresh oranges to rot, or return -1 if impossible."
url: "https://hashnode.com/posts/rotting-oranges-visualization/69d7d28ab3157a36ebc026f0"
---

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

Discussion

# [LeetCode 994: Rotting Oranges — Step-by-Step Visual Trace](https://blog.tracelit.dev/rotting-oranges-visualization?utm_source=hashnode&utm_medium=feed)

Given a 2D grid representing oranges where 0=empty, 1=fresh orange, 2=rotten orange, determine the minimum time in minutes for all fresh oranges to rot, or return -1 if impossible.

Apr 9 · 2 min read · blog.tracelit.dev  
Read the article

-   [#algorithms](https://hashnode.com/tag/algorithms)
-   [#leetcode](https://hashnode.com/tag/leetcode)

## Written by

[tracelit](https://hashnode.com/@tracelit)

@tracelit

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
