Lucky Numbers in a Matrix - Leetcode 1380 - Python

  Рет қаралды 7,819

NeetCodeIO

NeetCodeIO

Күн бұрын

Пікірлер: 26
@CoffeePoweredDev
@CoffeePoweredDev 4 ай бұрын
The example is incorrect @1:26, the minimum in the third row is 12. So, the lucky number is 12 in the changed example. I think the confusion arises while doing example 2, but referring to example 1. But appreciate these videos as always as they are always helpful.
@aquaworld9965
@aquaworld9965 4 ай бұрын
Yes
@ARUNKUMARTIT
@ARUNKUMARTIT 4 ай бұрын
I also had the same doubt, but how this 1st solution also support the example 2? can anyone explain this
@chrischika7026
@chrischika7026 4 ай бұрын
3:42 the fact that it is pink and you said sweet middle lol that had to be intentional.
@aryanmishra199
@aryanmishra199 4 ай бұрын
Yeah I noticed that too lmaoo
@fancypants6062
@fancypants6062 4 ай бұрын
Very cool little trick for this one. I'm glad I watched it even though it was an easy question.
@md_pedia1
@md_pedia1 4 ай бұрын
The final solution was awesome Glad I watched ur solution!
@giovannigonzalez6272
@giovannigonzalez6272 4 ай бұрын
The fact that ive gone through almost half of your neetcode 150 list and still cant solve easy problems like this is demotivating. Quitting sounds great right now!
@ShyGuy_16
@ShyGuy_16 4 ай бұрын
No, You can just give up that easily, consistency is the key, keep grinding!! it will pay off soon
@pratyushthakur8478
@pratyushthakur8478 4 ай бұрын
This was a fun question hopefully we get more matrx questions this week to practice for codesignal oas since new grad recruitment is starting soon
@MykolaPavluchynskyi
@MykolaPavluchynskyi 4 ай бұрын
I don't see need to check all rows and all cols after we identified max_of_mins. It's easier when we found max to also save column for that max. So second step would be to check only data in that exact column, not in all the matrix.
@yang5843
@yang5843 4 ай бұрын
This problem is similar to City skyline
@slizverg23
@slizverg23 4 ай бұрын
That feel then the problem marked "easy", but Neetcode's video is 16 min long...)))
@mahammedhashish9170
@mahammedhashish9170 4 ай бұрын
Is it possible to come up with o(1) space solution in interview? What do you think?
@AJK-a2j00k4
@AJK-a2j00k4 4 ай бұрын
it's not very hard.. just take a paper and pen and draw it out, you might click prolly!
@chien-yuyeh9386
@chien-yuyeh9386 4 ай бұрын
Thanks for sharing. I think this one is interesting.
@abhishekdhyade7500
@abhishekdhyade7500 4 ай бұрын
Not the butt cheek with a pink middle 😂😂😂
@TechiSrivasanth
@TechiSrivasanth 4 ай бұрын
12 is lucky number for ur example plz check
@cosmic1602
@cosmic1602 4 ай бұрын
Please come up with a math course
@pastori2672
@pastori2672 4 ай бұрын
you gave it all away when you said return an array is misleading lol
@epotnwarlock
@epotnwarlock 4 ай бұрын
3:44 we all do big guy
@chrischika7026
@chrischika7026 4 ай бұрын
3:34 gyattt
@BigStupidTech
@BigStupidTech 4 ай бұрын
Thank you for this!
@zweitekonto9654
@zweitekonto9654 4 ай бұрын
I think you complicated it way too much. The simple logic behind the O(1) solution is that, there can only be one min or one max element in a collection of elements given they are all distinct. And the O(1) solution comes naturally after this.
@NeetCodeIO
@NeetCodeIO 4 ай бұрын
can you explain, your explanation sounds oversimplified but maybe im missing something?
@zweitekonto9654
@zweitekonto9654 4 ай бұрын
​@NeetCodeIO Maybe I was thinking something else. My O(1) solution was different than yours and I didn't watch your solution complete. Your explanation is on point.
Sort the People - Leetcode 2418 - Python
6:09
NeetCodeIO
Рет қаралды 6 М.
Making an Algorithm Faster
30:08
NeetCodeIO
Рет қаралды 144 М.
Twin Telepathy Challenge!
00:23
Stokes Twins
Рет қаралды 57 МЛН
Who's spending her birthday with Harley Quinn on halloween?#Harley Quinn #joker
01:00
Harley Quinn with the Joker
Рет қаралды 26 МЛН
ТЫ В ДЕТСТВЕ КОГДА ВЫПАЛ ЗУБ😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 3,8 МЛН
Happy birthday to you by Secret Vlog
00:12
Secret Vlog
Рет қаралды 6 МЛН
Count Number of Teams - Leetcode 1395 - Python
17:29
NeetCodeIO
Рет қаралды 13 М.
How Senior Programmers ACTUALLY Write Code
13:37
Thriving Technologist
Рет қаралды 1,6 МЛН
Sort the Jumbled Numbers - Leetcode 2191 - Python
12:37
NeetCodeIO
Рет қаралды 8 М.
Harder Than It Seems? 5 Minute Timer in C++
20:10
The Cherno
Рет қаралды 212 М.
Shortest Subarray with Sum at Least K - Leetcode 862 - Python
27:57
10 Math Concepts for Programmers
9:32
Fireship
Рет қаралды 1,9 МЛН
Maximum Number of Points with Cost - Leetcode 1937 - Python
15:15
C#'s Best features you might not be using
31:20
dotnet
Рет қаралды 14 М.
Twin Telepathy Challenge!
00:23
Stokes Twins
Рет қаралды 57 МЛН