Skip to content
0:00 / 0:00

#leetcode#bfs#python

Rotting Oranges - Leetcode 994 - Python

NeetCode

1.1M subscribers • 3 videos on Hallway

YouTube

Intermediate. Assumes working knowledge.

191K views4 years ago1 recommendation

Computer scienceAlgorithmsData structuresCoding interviews

NeetCode explains how to solve the Rotting Oranges problem on LeetCode using a breadth-first search algorithm in Python.

🚀 neetcode.io/ - A better way to prepare for Coding Interviews 🥷 Discord: discord.gg/ddjKRXPqtk 🐦 Twitter: twitter.com/neetcode1 🐮 Support the channel: patreon.com/NEETcode ⭐ BLIND-75 PLAYLIST: youtube.com/watch?v=KLlXCFG5TnA&list=PLot-Xpze53ldVwtstag2TL… 💡 CODING SOLUTIONS: youtube.com/playlist?list=PLot-Xpze53leF0FeHz2X0aG3zd0mr1AW_ 💡 DYNAMIC PROGRAMMING PLAYLIST: youtube.com/watch?v=73r3KWiEvyk&list=PLot-Xpze53lcvx_tjrr_m2… 🌲 TREE PLAYLIST: youtube.com/watch?v=OnSn2XEQ4MY&list=PLot-Xpze53ldg4pN6PfzoJ… 💡 GRAPH PLAYLIST: youtube.com/watch?v=EgI5nU9etnU&list=PLot-Xpze53ldBT_7QA8NVo… 💡 BACKTRACKING PLAYLIST: youtube.com/watch?v=pfiQ_PS1g8E&list=PLot-Xpze53lf5C3HSjCnyF… 💡 LINKED LIST PLAYLIST: youtube.com/watch?v=G0_I-ZF0S38&list=PLot-Xpze53leU0Ec0VkBhn… 💡 BINARY SEARCH PLAYLIST: youtube.com/playlist?list=PLot-Xpze53leNZQd0iINpD-MAhMOMzWvO 📚 STACK PLAYLIST: youtube.com/playlist?list=PLot-Xpze53lfxD6l5pAGvCD4nPvWKU8Qo Problem Link: neetcode.io/problems/rotting-fruit - Read the problem - Drawing Explanation - Coding Explanation leetcode 994 This question was identified as an interview question from here: github.com/xizhengszhang/Leetcode_company_frequency #coding #interview #python Disclosure: Some of the links above may be affiliate links, from which I may earn a small commission.

Why it's here

1 person recommends this

What people say. Recommended as a clear walkthrough of the Rotting Oranges problem and when to use BFS over DFS.

u/TokyoS4lin r/ExperiencedDevs • Recommends

On “How can I get better at technical interviews at this point?”

Honestly not too bad of a problem. Practice similar Island problems. What was your thought process for going DFS over BFS? Here’s a good walkthrough: link to this video