No video

1380. Lucky Numbers in a Matrix | 4 Approaches | Brute - Better - Optimal - Optimal++ | Arrays

  Рет қаралды 2,706

Aryan Mittal

Aryan Mittal

Күн бұрын

Пікірлер: 9
@ARYANMITTAL
@ARYANMITTAL Ай бұрын
For those wondering about best case for Approach 3 - O(n * (n+m)) , what if n >>> m, then there is a standard technique to swap(n, m) thus getting always best case iteration of for loop. Do connect on twitter, we are posting some wild tweets these days ❤ - x.com/aryan_mittal007
@codingkart245
@codingkart245 Ай бұрын
last observation is brilliant mahn!!!!
@selfsigma9764
@selfsigma9764 Ай бұрын
I solved the problem by my own using 2nd approach. Although it was an easy problem But when I saw title of your video, I become sure that you surely have something insteresting..And you gave amazing insight about the problem.. Thanks
@bhavanasharma5713
@bhavanasharma5713 Ай бұрын
last part was awesome
@gowtham9153
@gowtham9153 Ай бұрын
In approach 2, we can directly check whether row[i] == col[i] under single for loop right? Because it means it has same number in row as well as column. Or I am thinking something wrong. Please respond
@nptel1punith929
@nptel1punith929 Ай бұрын
The last one is🔥🔥🔥
@Ayush37262
@Ayush37262 Ай бұрын
What if we don't have distinct values, will the solution fail??
@shandil663
@shandil663 Ай бұрын
Aryan bhai I have question if I am able to solve a particular problem using brute force or better than brute force do I need to know all the approaches possible to solve that problem.
@NoName-hd7ok
@NoName-hd7ok Ай бұрын
Yes ,optimised one will make a good impression in interview
Gli occhiali da sole non mi hanno coperto! 😎
00:13
Senza Limiti
Рет қаралды 24 МЛН
Running With Bigger And Bigger Feastables
00:17
MrBeast
Рет қаралды 195 МЛН
#LeetCode 1380 | Lucky Numbers in a Matrix #Java
5:25
Sleepy Cracker
Рет қаралды 469
10 Math Concepts for Programmers
9:32
Fireship
Рет қаралды 1,9 МЛН
Java for the Haters in 100 Seconds
2:22
Fireship
Рет қаралды 2,8 МЛН
LeetCode: The Worst Thing to Happen to Software Engineering
8:03
Coding with Dee
Рет қаралды 124 М.
The Man Who Solved the World’s Most Famous Math Problem
11:14
Newsthink
Рет қаралды 843 М.
Gli occhiali da sole non mi hanno coperto! 😎
00:13
Senza Limiti
Рет қаралды 24 МЛН