Take the below example s= "aababa" Expected ans showing is 1. But why can't we delete single 'a' from both the end and then delete 'ab' from both the end , in this way the length of rem string will be 0.
@mr_weird36807 ай бұрын
Deletion can be happened irrespective of the length of the prefix and suffix. In the first iteration, prefix "aa" and suffix"a" is deleted followed by both b's at the ends leaving the resultant string "a" which is of length 1. According to you, if both a's at the end are deleted at once. Then the prefix and suffix will be different characters which will not further proceeded. For the deletion to be happened, both the prefix and suffix should be of same characters irrespective of their lengths.
@umatjeet80127 ай бұрын
hey aryan one suggestion don't put method name like 2 pointers or dp in thumbnail , if any user want to solve that question he will already know it's solved by using this method. and love yout content it's way too good. keep it up
@prabhashmeharia80037 ай бұрын
Take the below example s= "aababa" Expected ans showing is 1. But why can't we delete single 'a' from both the end and then delete 'ab' from both the end , in this way the length of rem string will be 0.
@harshal87817 ай бұрын
Bro vo thumbnail me daalna imp be hai SEO me help karte hai keywords 🙂
@Sam__0567 ай бұрын
@@prabhashmeharia8003 you cant delete ab and ab from both ends as all the letters in the prefix should be equal and all the letters in the suffix should be equal it cant be 'ab' it has to be aaa bb cc ...
@ARYANMITTAL7 ай бұрын
Yes sir, thumbnail me nhi daal rahe but title me dalna important ho jaata hai, as how will someone know what all approaches will be covered in video, as people think its like any other youtube video, and I don’t even have any reach at all. Barely get views even🥹, thus think of adding at least all ways which we will discuss in video ❤️❤️🙇
@umatjeet80127 ай бұрын
@@ARYANMITTAL I can understand u are putting this much effort still not getting views I have suggested your channel to every one of my friend 🤌 and I was talking about title not thumbnail mistakenly wrote thumbnail 😂
@TON-1087 ай бұрын
Thank You Aryan Bhai 🗣
@prabhashmeharia80037 ай бұрын
Take the below example s= "aababa" Expected ans showing is 1. But why can't we delete single 'a' from both the end and then delete 'ab' from both the end , in this way the length of rem string will be 0.
@ARYANMITTAL7 ай бұрын
Arey TON bhai, kaafi time baad dikhai diye 🥹🥹🫂
@TON-1087 ай бұрын
@@ARYANMITTAL Comment nhi kiya bahut dino se 🥲, but aapka POTD ka approach dekhne daily aata hu 🫂
@learningmaths7867 ай бұрын
thanks aryan
@prabhashmeharia80037 ай бұрын
Take the below example s= "aababa" Expected ans showing is 1. But why can't we delete single 'a' from both the end and then delete 'ab' from both the end , in this way the length of rem string will be 0. Don't trust anyone blindly.
@san_sin7 ай бұрын
bhaiya , your explanation is amazing
@ARYANMITTAL7 ай бұрын
Thank you so much 😀❤️❤️🫂
@debanjan107 ай бұрын
Great Explanation Sir
@prabhashmeharia80037 ай бұрын
Take the below example s= "aababa" Expected ans showing is 1. But why can't we delete single 'a' from both the end and then delete 'ab' from both the end , in this way the length of rem string will be 0.
@ARYANMITTAL7 ай бұрын
Thank you so much broo ❤️❤️❤️
@ARYANMITTAL7 ай бұрын
prabhash bhai answer mila kyaa?? Kaafi jayada he comment maar diya aapne 😂😂😂
@harshdoiphode22497 ай бұрын
while(i
@ARYANMITTAL7 ай бұрын
Did we tried running this ??
@AnshuHarshit7 ай бұрын
Sometimes your double meaning (/ dark jokes) words made interesting to learn questions.🤣🤣🤣🤣
@ARYANMITTAL7 ай бұрын
Anshul bhai 😂😂💀🌚
@karthikraja83417 ай бұрын
small change in the second while loop make it as while(j>i && s[j] == c) j--;
@prabhashmeharia80037 ай бұрын
Take the below example s= "aababa" Expected ans showing is 1. But why can't we delete single 'a' from both the end and then delete 'ab' from both the end , in this way the length of rem string will be 0.
@karthikraja83417 ай бұрын
@@prabhashmeharia8003 in this case you delete aa at the prefix and delete a at the suffix
@prabhashmeharia80037 ай бұрын
@@karthikraja8341 Why?
@karthikraja83417 ай бұрын
@@prabhashmeharia8003 see the leetcode second example for the question