Sister the way you explaining blows my mind don't stop teaching you are so good !
@kaushalbhajne1447
Ай бұрын
Mam your teaching is very good👍. Hatsoff to you for explaining the algo so efficiently. Good luck🤞
@adolfocarrillo248
9 ай бұрын
But the algorithm is limited to work only if two different elements appears on the array, for more than 2 different elements it won't work. It's kind of restricted functionality.
@sppatro9477
9 ай бұрын
Yes so then what's the solution?
@sppatro9477
9 ай бұрын
If you know then please reply
@dr.shalabhkumarmishra3571
2 ай бұрын
actually it works, one more step is there .....validation. we must validate by N/2 rule after the voting
@venkypoluri4552
Ай бұрын
No it's applicable for more than 2 elements also . As there is a condition saying that there is a majority element
@manishjeena6325
Жыл бұрын
I appreciate your way of explaining.....thank you❤🙏
@iam_phani
Жыл бұрын
A big shout out to you Mam. You made topics clear, simple and explanations were on point. A big thank you for all your efforts. If time permits, I humbly request you to please continue the 150 interview leetcode problems.
@TechnosageLearning
Жыл бұрын
Hey..i will continue the series very soon..stay tuned
@NewbieValorantYT
Жыл бұрын
Thank you so much mam, for such simple and accurate explaination.
@AnjaliYadav-qv4sb
4 ай бұрын
it is very useful...thank you
@AbhayKumar-xp3dy
8 ай бұрын
Hey these videos are really helping me .... can you please complete these 150 sheets playlist , turn out to best resource for me till now. please🙂🙂
@Nonsense675
7 ай бұрын
Hi I'm really grateful for this highly self explanatory piece, one point that I am in need of clarification: the input is supposed to be 'non-zero', , is that correct please ?
@Harshal-dk2kr
7 ай бұрын
will there will be only 2 types of elements in the array ... suppose [1,1,2,3,0,1] here it is 4 diffetnet element ...so what will be output for it.. and 2 or 3 will not try to decrese their point instead of against 1 ..
@manirajsivasubbu
3 ай бұрын
Hi Harshal, understand the question properly. Input array always have the majority element which means count a element should be more the n/2. In your example [1,1,2,3,0,1], I don't see any majority element. To 1 be the majority element, four 1s should be in the input array. Hope this helps you! Happy learning!
@Harshal-dk2kr
3 ай бұрын
@@manirajsivasubbu i got it bro when i wnet to imolement it
@Harshal-dk2kr
3 ай бұрын
@@manirajsivasubbu but ty
@himanshupokhariya9125
8 ай бұрын
[6,5,5] on that test case answer will be would could you tell me why ??
@nazim4525
Жыл бұрын
Awesome 👍👍👍👍 mam
@mayankarora5345
6 ай бұрын
Mam,given example me '3' ka count 1 ayya h lekin apne ko more than '1'(n/2) chaiye tha , apne ko pta h ki '3' total 2 times h lekin question m kese pta chla ki 3 more than 1(n/2) times h , kioki last m to count '1' hi bachha tha, mtlb usne compare kese kiya length se?
@hulkers4365
Ай бұрын
what if we have two different numbers in last
@ujjwaldas2302
4 ай бұрын
you dint verified the case that majority element should be more the n/2 ????
@nazim4525
Жыл бұрын
Please mam you continue solve LEETCODE questions
@TechnosageLearning
Жыл бұрын
Hi..Will upload videos very soon..
@nazim4525
Жыл бұрын
@@TechnosageLearning One day your youtube channel will increase a lot of subscribers
@TechnosageLearning
Жыл бұрын
Thank you🙏
@SagarDash-n7c
2 ай бұрын
It's a Great but wanted to check what will be the case in 1. int [] arr = {3,2,3,2,4}; and 2. int [] arr = {3,2,3,2,}; ?
@dr.shalabhkumarmishra3571
2 ай бұрын
it works, after voting we must verify, there is no majority element since any element is not appearing more than N/2 times
@sgautam6468
6 ай бұрын
The solution does not work for different arrays.
@ahmadfarhadghafoori3369
5 ай бұрын
This is only works for these two examples. If the the elements of the array getting longer it won't work.
@abdulkadir-kp5sb
Ай бұрын
{0,0,1,1,1,1,2,3,3} but this is giving majority element 3, by applying this algorithm.
@Maddy_ideas
Ай бұрын
No, 1 is present only 4 times. For majority it has to be present atleast 6 times . Algorithm is crt
@yash_14h
Жыл бұрын
Mam why there are only three types of numbers.?? In array 😢
@TechnosageLearning
Жыл бұрын
That is only an example..you can take any type of numbers
@GauravRaj-bi9kg
4 ай бұрын
why u have stop the series you may complete it all plzzzzzzzzzz
@TechnosageLearning
4 ай бұрын
Hi Starting very soon..working on it..Please stay tuned
@GauravRaj-bi9kg
4 ай бұрын
@@TechnosageLearning as soon as possible am waiting
@Bagulaff
Жыл бұрын
Sir muje VMware me job Leni hai to uske liye kya kya karna padega
@umeshkumarmahato5234
Жыл бұрын
please continue this series
@TechnosageLearning
Жыл бұрын
Sure 😊
@mdayazalam3132
Жыл бұрын
Mam please upload the Leetcode question no 238 Product of Array Except Self
@soumyabrajwasi845
Жыл бұрын
it fails when arr is - 3,3,4
@TechnosageLearning
Жыл бұрын
No its not failing ..in this case,majority element is 3 and output is also 3..you can try the code from git repo..You might be missing something
Пікірлер: 49