Пікірлер
@punk5513
@punk5513 Күн бұрын
Man are you coming back😮?
@toooplive
@toooplive 5 күн бұрын
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
@TheMadisonBluesBand
@TheMadisonBluesBand 11 күн бұрын
Great visualization. The second condition is quite unintuitive. Usually you skip when a number IS used, this goes against that.. but somehow it works.
@KDStark11
@KDStark11 12 күн бұрын
Damm what a solution !
@CodeWithZi
@CodeWithZi 11 күн бұрын
glad you found it useful!
@pravinprince3221
@pravinprince3221 14 күн бұрын
Thank you sir for the wonderful video sir
@CodeWithZi
@CodeWithZi 14 күн бұрын
thanks for your supportive comment!
@kareemlateefyomi8690
@kareemlateefyomi8690 15 күн бұрын
Can you recommend a resource to understand linked list
@CodeWithZi
@CodeWithZi 14 күн бұрын
I recommend youtube mostly, thats where I learned it myself when I was starting
@cans-z7i
@cans-z7i 18 күн бұрын
can u try in dart code :D
@CodeWithZi
@CodeWithZi 18 күн бұрын
might try it :D
@2kgamerplays258
@2kgamerplays258 18 күн бұрын
why u wanna suffer bro?
@CodeWithZi
@CodeWithZi 16 күн бұрын
🤣🤣
@itzindiandude
@itzindiandude 19 күн бұрын
💪🗿🔥
@2kgamerplays258
@2kgamerplays258 20 күн бұрын
Nice and simple thanks
@CodeWithZi
@CodeWithZi 20 күн бұрын
You're welcome!
@punk5513
@punk5513 21 күн бұрын
Woo hoo 🎉 you are back🔥🫡
@punk5513
@punk5513 21 күн бұрын
Man why are you not uploading please don't leave KZbin😢😢
@CodeWithZi
@CodeWithZi 20 күн бұрын
I'm here and I won't leave, was busy with some stuff😁 thanks for your support really appreciate it!
@punk5513
@punk5513 20 күн бұрын
@CodeWithZi 🎉🎉🎉🙌
@obviously_obvious
@obviously_obvious 21 күн бұрын
👏🙌🙏
@ding.1367
@ding.1367 21 күн бұрын
me laughing in -~-~-~5
@adolfocarrillo248
@adolfocarrillo248 22 күн бұрын
Ahhhhhhhhh😮!!!! clear explanation with a nice animation, thanks Zi!!!
@CodeWithZi
@CodeWithZi 22 күн бұрын
Glad you liked it!
@bucketflow
@bucketflow 23 күн бұрын
super usefull for logic building 💥💥
@CodeWithZi
@CodeWithZi 22 күн бұрын
Glad to hear that!
@pravinprince3221
@pravinprince3221 23 күн бұрын
Thank you sir for the wonderful video sir
@CodeWithZi
@CodeWithZi 22 күн бұрын
appreciate your supportive comment like always!
@sumankhadka3
@sumankhadka3 23 күн бұрын
Learnt it when learning idris lang.
@kareemlateefyomi8690
@kareemlateefyomi8690 24 күн бұрын
Awesome 😊
@CodeWithZi
@CodeWithZi 22 күн бұрын
Thanks 🤗
@335haan5
@335haan5 25 күн бұрын
interesting
@CodeWithZi
@CodeWithZi 22 күн бұрын
glad you found it interesting! thanks for your comment
@dumbledooff
@dumbledooff 26 күн бұрын
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.
@sidhantmourya
@sidhantmourya 26 күн бұрын
(l+r)/2 can cause numeric exception instead use l+(r-l)/2
@CodeWithZi
@CodeWithZi 25 күн бұрын
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___1441
@mcaves___1441 28 күн бұрын
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);
@itzindiandude
@itzindiandude 29 күн бұрын
next level visualisation🔥🔥🫡
@CodeWithZi
@CodeWithZi 29 күн бұрын
Glad you found it useful!
@itzindiandude
@itzindiandude 29 күн бұрын
@CodeWithZi man your videos are so nice I can watch it all day man🔥🔥🫡😃👍
@Rajan-d6x9w
@Rajan-d6x9w Ай бұрын
This is good explanation, keep it up! ❤🙌
@CodeWithZi
@CodeWithZi Ай бұрын
Thank you!
@tezzbumgaming2324
@tezzbumgaming2324 Ай бұрын
Can we not get product of all elements ans while iterating divide by current element and save in result ?
@CodeWithZi
@CodeWithZi Ай бұрын
Hi thanks for your comment! The problem is the question asks us to not use division
@tezzbumgaming2324
@tezzbumgaming2324 Ай бұрын
@@CodeWithZi okay 🫡
@peace70
@peace70 Ай бұрын
Great video
@CodeWithZi
@CodeWithZi Ай бұрын
Glad you found it useful!
@peace70
@peace70 Ай бұрын
Great explanation, thanks for the animation!
@CodeWithZi
@CodeWithZi Ай бұрын
You're very welcome!
@pravinprince3221
@pravinprince3221 Ай бұрын
Thank you for the wonderful video sir you explained it in a very easy way, thanks again sir
@CodeWithZi
@CodeWithZi Ай бұрын
anytime! thanks for your comment
@CrownlessX
@CrownlessX Ай бұрын
Why don't you use 2 pointers(head and tail of the list) and consider only applicable chars?
@CodeWithZi
@CodeWithZi Ай бұрын
Thanks for your comment, that approach also works!
@tharundharmaraj9045
@tharundharmaraj9045 Ай бұрын
100th video! Congrats for many more successful videos🎉🎉🎉
@CodeWithZi
@CodeWithZi Ай бұрын
Thank you so much 😁
@pureplum6346
@pureplum6346 Ай бұрын
Woww you've hit 1k! Congratulations..was away for a while.
@CodeWithZi
@CodeWithZi Ай бұрын
ikr! I am super happy about it, thanks and welcome back!
@Madhava_P7
@Madhava_P7 Ай бұрын
set(range(n)-set(given))
@pravinprince3221
@pravinprince3221 Ай бұрын
Thank you sir for the wonderful video
@CodeWithZi
@CodeWithZi Ай бұрын
Appreciate your support as always!
@tezzbumgaming2324
@tezzbumgaming2324 Ай бұрын
Very good explanation thank you for your dedication and for helping us 😊
@CodeWithZi
@CodeWithZi Ай бұрын
So nice of you! anytime
@tharundharmaraj9045
@tharundharmaraj9045 Ай бұрын
Becoming a Big fan of your explanations!!! Thanks and pls keep the good work!!
@CodeWithZi
@CodeWithZi Ай бұрын
Glad you like them! Thanks for your supportive comment
@mazthespaz1
@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
@CodeWithZi Ай бұрын
nice approach! thanks for sharing
@pravinprince3221
@pravinprince3221 Ай бұрын
Thank you sir for the wonderful video
@CodeWithZi
@CodeWithZi Ай бұрын
Glad you liked it
@pravinprince3221
@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
@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
@Ismail-uu7tu Ай бұрын
Underrated af
@CodeWithZi
@CodeWithZi Ай бұрын
appreciate you!
@2kgamerplays258
@2kgamerplays258 Ай бұрын
Nice video. Do you have any discord community or x community? Would Love to connect
@CodeWithZi
@CodeWithZi Ай бұрын
Thanks for your comment! yeah I am on x, codewithzi, would love to connect as well
@2kgamerplays258
@2kgamerplays258 Ай бұрын
Awesome video man, can you also make dsa for JavaScript pls 🙏
@CodeWithZi
@CodeWithZi Ай бұрын
Thanks for your supportive comment! it is in Javascript
@Matem-sc1ic
@Matem-sc1ic Ай бұрын
Good explanation keep it up ❤
@CodeWithZi
@CodeWithZi Ай бұрын
Thank you!
@LokeshKumar-tk7ri
@LokeshKumar-tk7ri Ай бұрын
Great man , i think you are the only person who teaches DSA in JS on YT
@CodeWithZi
@CodeWithZi Ай бұрын
Appreciate your support!
@vdinh143
@vdinh143 Ай бұрын
It's beside the point, but that graph is both not to scale and bends the wrong way 😂
@CodeWithZi
@CodeWithZi Ай бұрын
yeah I realized that after making the video, glad that was not the point 🤣
@peace70
@peace70 Ай бұрын
Great video man, keep it going
@CodeWithZi
@CodeWithZi Ай бұрын
Thanks for your supportive comment!