Find Beautiful Indices in the Given Array | Part I & II | KMP Algorithm | String Matching Algorithm

  Рет қаралды 9,966

Aryan Mittal

Aryan Mittal

Күн бұрын

Пікірлер: 40
@SupriyoGhosh-gz3fs
@SupriyoGhosh-gz3fs 7 ай бұрын
You're just crazy I would say. Just crystal clear understanding of the most complex algorithm of dsa. Your effort = 100/100, understandability=100/100. Grateful towards you =100/100
@dhruvdangi8923
@dhruvdangi8923 9 күн бұрын
don't know how the lecture ended in a blink. amazing teaching ability
@syedmohammadarsalan2583
@syedmohammadarsalan2583 10 ай бұрын
BEST VIDEO EVER ON KMP SIR 😍
@asthajain2511
@asthajain2511 7 ай бұрын
You're just crazy I would say. Just crystal clear understanding of the most complex algorithm of dsa. Your effort = 100/100, understandability=100/100. Grateful towards you =100/100 🙂🙃
@abhinavkumar4375
@abhinavkumar4375 9 ай бұрын
The number of times you have sent Broo to ask for matching the pattern , now he is not anymore bro he is telling "jaa khud puchkar aa ". Brooooo🤯
@jayendrareddy9707
@jayendrareddy9707 8 ай бұрын
I have already watched Neetcode video of kmp, but your version of KMP is best.I liked your video bro , thank you.
@abhimanyuambastha2595
@abhimanyuambastha2595 9 күн бұрын
I dont think Neetcode himself understood the algorithm properly
@lavanya_m01
@lavanya_m01 4 ай бұрын
The part where you explained the Intuition of KMP working is just out of the world!!
@k.satish3663
@k.satish3663 10 ай бұрын
finally learned kmp .clean and clear explanation . thank you so much bro.
@priyeshtandel2101
@priyeshtandel2101 5 ай бұрын
I figured out why the balloon came, it was because you made a victory sign with your two fingers while explaining.😄
@ajaysubramaniam4453
@ajaysubramaniam4453 9 ай бұрын
Thank you for the video. Understood everything about kmp.
@sukhpreetsingh5200
@sukhpreetsingh5200 9 ай бұрын
Best video on kmp Just awesome
@kunalkumarshukla137
@kunalkumarshukla137 5 ай бұрын
bhai ive watched at;east 10 15 videos on lps kmp but could'nt get the intuition for some time i could mug up..but forget after some time...this time i got the proper intuition thanks so much
@kkkkkkkkkk811
@kkkkkkkkkk811 9 ай бұрын
"I wouldn't have said 'bro' this many times in my entire life as you did in this video alone 😂..But really nice explanation ❤"
@Its_Shubham_Negi
@Its_Shubham_Negi Ай бұрын
Super Super Super explainationnnnn
@karthikeyanv4128
@karthikeyanv4128 5 ай бұрын
nice explanation👍
@23cash86
@23cash86 3 ай бұрын
Great explanation
@onlysparsh
@onlysparsh 9 ай бұрын
KMP Game over thankss aryan bhaiya
@satishkumarpatra4896
@satishkumarpatra4896 7 ай бұрын
I want to find O(M) space of LPS array i.e. to use only of pattern length. Where to find it?
@smartwork7098
@smartwork7098 2 ай бұрын
Thanks bro
@rakeshvarma8091
@rakeshvarma8091 9 ай бұрын
I couldn't wrap my head around the below line at kzbin.info/www/bejne/faOQln6Iqrx8h8U: lps[i] = prev_idx + (s[i] == s[prev_idx] ? 1 : 0); How are you soo sure that if the character at index "i" matches with character at "prev_idx" then we can get the lps of current index by adding "prev_idx" to it ? I mean I agree that characters at index "i" & "prev_idx" match, but we don't have any idea about what character is at index "i-1" and whether it is in the longest suffix matching the prefix. Without this idea, how can we add "prev_idx" ?
@2amCoder
@2amCoder Ай бұрын
Big ac sir ❤
@sriramphysics5853
@sriramphysics5853 10 ай бұрын
Good explanation
@codewithom11
@codewithom11 9 ай бұрын
I am just not getting the intuition behind : If current character doesnt matches the previousindex character then why should we go to its previous index and repeat same process? Unable to understand intuition behind that while loop stuff!
@ARYANMITTAL
@ARYANMITTAL 9 ай бұрын
I will suggest do Leetcode problem 3036 & 3031 (Write Problem name by Aryan Mittal) you will understand the usecase & importance of this while loop. If still have a confusion, then have a new comment, don’t reply on this comment as for me, it will not be visible, and tell what point you understood intuition and what point things doesn’t make sense, i’ll try replying there ❤️❤️
@PRANAVMAPPOLI
@PRANAVMAPPOLI 2 ай бұрын
@@ARYANMITTAL I understand this how the algo works in this scenario, but what its exactly means this? what the theory behind going LPS[prev_indx-1] if there is not match, what does the LPS[prev_indx-1] actually ment !!! Anyways much better explanation than any other videos
@satwiktatikonda764
@satwiktatikonda764 8 ай бұрын
btwn z-function and kmp wch one is good?
@2amCoder
@2amCoder Ай бұрын
Manachar algo
@badrelmazaz
@badrelmazaz 9 ай бұрын
Hi, at the example with s = "aabaacaabaaa" the last lps element should be 2 not 0. Am I wrong? In my opinion should be like lps = [0, 1, 0, 1, 2, 0, 1, 2, 3, 4, 5, 2] and not [0, 1, 0, 1, 2, 0, 1, 2, 3, 4, 5, 0]. Timestamp: 9:23
@ARYANMITTAL
@ARYANMITTAL 9 ай бұрын
Bro, ending character was a ‘d’ and not ‘a’ 🙃, though you are absolutely right, if it would have been ‘a’, lps would have been as you mentioned 🫡
@badrelmazaz
@badrelmazaz 9 ай бұрын
@@ARYANMITTAL Oh I got it, I'm sorry it seemed really an 'a' to me. Thanks for replying.
@AnirudhSharma-xe8je
@AnirudhSharma-xe8je 4 ай бұрын
35:42 iska intution ptaa hai kisiko aisa krne se answer kyu aara?
@lilgainz
@lilgainz 10 ай бұрын
Brooo 🤯
@HoneySingh-yp7zc
@HoneySingh-yp7zc 4 ай бұрын
only me, jise kuch smjh nhi aaya?
@suyashsingh1715
@suyashsingh1715 10 ай бұрын
Bhai please don't use "bhaiya" word, i think those who are watching your vedio are not your little brother can be your big brother. It feels bad please don't use it.
@Lucifer0872
@Lucifer0872 10 ай бұрын
Don't watch his videos . We love him calling everyone bhaiya
@ok-google-run
@ok-google-run 10 ай бұрын
he's our sweet bhaiya. bhaiya is ageless. Focus on his explanation rather than the pronouns. I am a girl so should I give him a bash for not calling out in girl pronouns?!
@Spyro-kt8gy
@Spyro-kt8gy 5 ай бұрын
You're so ungrateful bro.
@smartwork7098
@smartwork7098 2 ай бұрын
Dude, let him teach. He is not disrespecting anyone.
How Many Balloons To Make A Store Fly?
00:22
MrBeast
Рет қаралды 102 МЛН
What type of pedestrian are you?😄 #tiktok #elsarca
00:28
Elsa Arca
Рет қаралды 32 МЛН
СКОЛЬКО ПАЛЬЦЕВ ТУТ?
00:16
Masomka
Рет қаралды 3,4 МЛН
9.1 Knuth-Morris-Pratt KMP String Matching Algorithm
18:56
Abdul Bari
Рет қаралды 1,7 МЛН
Coding Unbreakable Encryption in C | One-Time Pad
17:42
HirschDaniel
Рет қаралды 4,7 М.
LeetCode was HARD until I Learned these 15 Patterns
13:00
Ashish Pratap Singh
Рет қаралды 578 М.
9.2 Rabin-Karp String Matching Algorithm
23:50
Abdul Bari
Рет қаралды 820 М.
Beginners Should Think Differently When Writing Golang
11:35
Anthony GG
Рет қаралды 123 М.