A small mistake in 7:19 where Current Area = 7 * min(8, 7) --> 8 * 7 --> 49 The final value is correct so would classify the 8 as a typo
@TheMadisonBluesBand11 күн бұрын
Great visualization. The second condition is quite unintuitive. Usually you skip when a number IS used, this goes against that.. but somehow it works.
@KDStark1112 күн бұрын
Damm what a solution !
@CodeWithZi11 күн бұрын
glad you found it useful!
@pravinprince322114 күн бұрын
Thank you sir for the wonderful video sir
@CodeWithZi14 күн бұрын
thanks for your supportive comment!
@kareemlateefyomi869015 күн бұрын
Can you recommend a resource to understand linked list
@CodeWithZi14 күн бұрын
I recommend youtube mostly, thats where I learned it myself when I was starting
@cans-z7i18 күн бұрын
can u try in dart code :D
@CodeWithZi18 күн бұрын
might try it :D
@2kgamerplays25818 күн бұрын
why u wanna suffer bro?
@CodeWithZi16 күн бұрын
🤣🤣
@itzindiandude19 күн бұрын
💪🗿🔥
@2kgamerplays25820 күн бұрын
Nice and simple thanks
@CodeWithZi20 күн бұрын
You're welcome!
@punk551321 күн бұрын
Woo hoo 🎉 you are back🔥🫡
@punk551321 күн бұрын
Man why are you not uploading please don't leave KZbin😢😢
@CodeWithZi20 күн бұрын
I'm here and I won't leave, was busy with some stuff😁 thanks for your support really appreciate it!
@punk551320 күн бұрын
@CodeWithZi 🎉🎉🎉🙌
@obviously_obvious21 күн бұрын
👏🙌🙏
@ding.136721 күн бұрын
me laughing in -~-~-~5
@adolfocarrillo24822 күн бұрын
Ahhhhhhhhh😮!!!! clear explanation with a nice animation, thanks Zi!!!
@CodeWithZi22 күн бұрын
Glad you liked it!
@bucketflow23 күн бұрын
super usefull for logic building 💥💥
@CodeWithZi22 күн бұрын
Glad to hear that!
@pravinprince322123 күн бұрын
Thank you sir for the wonderful video sir
@CodeWithZi22 күн бұрын
appreciate your supportive comment like always!
@sumankhadka323 күн бұрын
Learnt it when learning idris lang.
@kareemlateefyomi869024 күн бұрын
Awesome 😊
@CodeWithZi22 күн бұрын
Thanks 🤗
@335haan525 күн бұрын
interesting
@CodeWithZi22 күн бұрын
glad you found it interesting! thanks for your comment
@dumbledooff26 күн бұрын
Would be better if you referenced that this is called the Boyer-Moore majority vote algorithm. A possible extension would also be if there is no guaranteed majority element, a second pass would be needed to count occurrences of the candidate.
@sidhantmourya26 күн бұрын
(l+r)/2 can cause numeric exception instead use l+(r-l)/2
@CodeWithZi25 күн бұрын
Thanks for pointing this out! However, since the question specifies that the maximum length is 5000, we can be confident that a numeric exception won’t occur in this case
@mcaves___144128 күн бұрын
var input = [1,2,3,4]; var output = []; var inLength = input.length; for(var indx = 0 ; indx < inLength; indx++) { var mult = 1; $.each(input,function(i,x){ if(i != indx){ mult *= x; } }) output.push(mult); } console.log('result is ', output);
@itzindiandude29 күн бұрын
next level visualisation🔥🔥🫡
@CodeWithZi29 күн бұрын
Glad you found it useful!
@itzindiandude29 күн бұрын
@CodeWithZi man your videos are so nice I can watch it all day man🔥🔥🫡😃👍
@Rajan-d6x9wАй бұрын
This is good explanation, keep it up! ❤🙌
@CodeWithZiАй бұрын
Thank you!
@tezzbumgaming2324Ай бұрын
Can we not get product of all elements ans while iterating divide by current element and save in result ?
@CodeWithZiАй бұрын
Hi thanks for your comment! The problem is the question asks us to not use division
@tezzbumgaming2324Ай бұрын
@@CodeWithZi okay 🫡
@peace70Ай бұрын
Great video
@CodeWithZiАй бұрын
Glad you found it useful!
@peace70Ай бұрын
Great explanation, thanks for the animation!
@CodeWithZiАй бұрын
You're very welcome!
@pravinprince3221Ай бұрын
Thank you for the wonderful video sir you explained it in a very easy way, thanks again sir
@CodeWithZiАй бұрын
anytime! thanks for your comment
@CrownlessXАй бұрын
Why don't you use 2 pointers(head and tail of the list) and consider only applicable chars?
@CodeWithZiАй бұрын
Thanks for your comment, that approach also works!
@tharundharmaraj9045Ай бұрын
100th video! Congrats for many more successful videos🎉🎉🎉
@CodeWithZiАй бұрын
Thank you so much 😁
@pureplum6346Ай бұрын
Woww you've hit 1k! Congratulations..was away for a while.
@CodeWithZiАй бұрын
ikr! I am super happy about it, thanks and welcome back!
@Madhava_P7Ай бұрын
set(range(n)-set(given))
@pravinprince3221Ай бұрын
Thank you sir for the wonderful video
@CodeWithZiАй бұрын
Appreciate your support as always!
@tezzbumgaming2324Ай бұрын
Very good explanation thank you for your dedication and for helping us 😊
@CodeWithZiАй бұрын
So nice of you! anytime
@tharundharmaraj9045Ай бұрын
Becoming a Big fan of your explanations!!! Thanks and pls keep the good work!!
@CodeWithZiАй бұрын
Glad you like them! Thanks for your supportive comment
@mazthespaz1Ай бұрын
since the Map is likely to be shorter than the original string, I thought it might be interesting to loop through the Map for the second loop function firstUnique( wrd ) { let dict = new Map() let n = wrd.length let lowestIndex = 100000 for( let i= 0; i < n; i++ ) dict.set(wrd[i], dict.has(wrd[i])? -1: i) for( const indx of dict.values() ) if( indx >= 0 && indx < lowestIndex ) lowestIndex = indx; return (lowestIndex === 100000)? -1: lowestIndex; } this could probably be optimized a bit further but this was just for fun
@CodeWithZiАй бұрын
nice approach! thanks for sharing
@pravinprince3221Ай бұрын
Thank you sir for the wonderful video
@CodeWithZiАй бұрын
Glad you liked it
@pravinprince3221Ай бұрын
Thank you sir for the wonderful video one more question sir for the reversal of the string if question is given as not to use default methods provided by programming language what approach will you take do you manually loop through it or use recurssion to reverse the string do please let me know sir thank you
@CodeWithZiАй бұрын
Thank you for your question! If we’re not allowed to use built in methods for reversing the string, I would manually loop through it in reverse order.
@Ismail-uu7tuАй бұрын
Underrated af
@CodeWithZiАй бұрын
appreciate you!
@2kgamerplays258Ай бұрын
Nice video. Do you have any discord community or x community? Would Love to connect
@CodeWithZiАй бұрын
Thanks for your comment! yeah I am on x, codewithzi, would love to connect as well
@2kgamerplays258Ай бұрын
Awesome video man, can you also make dsa for JavaScript pls 🙏
@CodeWithZiАй бұрын
Thanks for your supportive comment! it is in Javascript
@Matem-sc1icАй бұрын
Good explanation keep it up ❤
@CodeWithZiАй бұрын
Thank you!
@LokeshKumar-tk7riАй бұрын
Great man , i think you are the only person who teaches DSA in JS on YT
@CodeWithZiАй бұрын
Appreciate your support!
@vdinh143Ай бұрын
It's beside the point, but that graph is both not to scale and bends the wrong way 😂
@CodeWithZiАй бұрын
yeah I realized that after making the video, glad that was not the point 🤣