Maximum Number of Fish in a Grid – Leetcode 2658 – Python

学習

🚀 https://neetcode.io/ – A better way to prepare for Coding Interviews

🧑‍💼 LinkedIn: https://www.linkedin.com/in/navdeep-singh-3aaa14161/
🐦 Twitter: https://twitter.com/neetcode1

⭐ BLIND-75 PLAYLIST: https://www.youtube.com/watch?v=KLlXCFG5TnA&list=PLot-Xpze53ldVwtstag2TL4HQhAnC8ATf

Problem Link: https://leetcode.com/problems/maximum-number-of-fish-in-a-grid/

0:00 – Read the problem
0:30 – Drawing Explanation
7:04 – Coding Explanation
12:25 – Using input space

leetcode 2658

#neetcode #leetcode #python

コメント

  1. @SAYEEDURRAHMAN-nn9qo より:

    I think the overhead added by recursion is causing the solution to be slow. Could you please implement DFS without recursion once. That would be very helpful for me personally. Many thanks for these videos, they are very valuable to me. God bless you sir.

  2. @alessandrog498 より:

    Is this not very similar to pacific islands?

タイトルとURLをコピーしました