Minimum Length of String After Deleting Similar Ends | Simple Two Pointers | Leetcode 1750

  Рет қаралды 5,130

codestorywithMIK

codestorywithMIK

Күн бұрын

Пікірлер: 56
@heyOrca2711
@heyOrca2711 Ай бұрын
easy peasy!! kudh solve karne ki koshish ki par edge cases miss hogaye, T-T test cases pass ho gaye te thank you mik for covering the edge cases as well...
@DevOpskagyaan
@DevOpskagyaan 8 ай бұрын
Thanks as always mik. Your clear voice and way of explanation solves all doubts
@eazy_coding
@eazy_coding 8 ай бұрын
The you explain bhai is just awsm bahut mst jabarjast
@pranavmahendra3423
@pranavmahendra3423 8 ай бұрын
Thank you soo much MIK for fantastic explanation
@codestorywithMIK
@codestorywithMIK 8 ай бұрын
Glad it was helpful! ❤️
@amitshukla2268
@amitshukla2268 8 ай бұрын
Bhaiya aaj ke GFG POTD Ki Sare approaches ka video bna do please
@codestorywithMIK
@codestorywithMIK 8 ай бұрын
Hi there, Actually I am travelling and hence a little diffuse to post videos after early morning. Let me try to make it once I get back home. Hope you understand ❤️
@ugcwithaddi
@ugcwithaddi 8 ай бұрын
I watched some videos on gfg potd but none of them covers the intuition and thought process like you do. Please make a video soon on today’s problem when you get time
@parthbhatti4151
@parthbhatti4151 8 ай бұрын
Longest repeating and non-overlapping substring Bring video on this as well
@sujaydwivedi939
@sujaydwivedi939 7 ай бұрын
Thanks a lot bhaiya
@amankumar-ig2fe
@amankumar-ig2fe 8 ай бұрын
Thanks sirji for you provide your important time🥰🥰
@codestorywithMIK
@codestorywithMIK 8 ай бұрын
Most welcome ❤️🙏
@amankumar-ig2fe
@amankumar-ig2fe 8 ай бұрын
🥰
@aruu346
@aruu346 8 ай бұрын
bhaiya can you plz make video for understanding constraints according to which we can also understand which ds can be used.and also a video for time space complexity.It is very easier to understand from ur videos.
@codestorywithMIK
@codestorywithMIK 8 ай бұрын
Definitely. Let me plan that soon next week ❤️🙏
@aruu346
@aruu346 8 ай бұрын
@@codestorywithMIK thankyou bhaiya pls do not forget.
@parthbhatti4151
@parthbhatti4151 8 ай бұрын
can you please make video on log like if interviewer asked what is log why we required log in time complexity ? etc.... and solve 1-2 problems and we will learn to find out the log time complexity ?
@ayushshukla1318
@ayushshukla1318 8 ай бұрын
Leetcode may keep going sir
@wearevacationuncoverers
@wearevacationuncoverers 8 ай бұрын
Solved it on my own. yayyyy
@kunalpatil.24
@kunalpatil.24 8 ай бұрын
Thank you!
@codestorywithMIK
@codestorywithMIK 8 ай бұрын
Most welcome 🙏❤️
@KeshavKumar-jl1ub
@KeshavKumar-jl1ub 8 ай бұрын
thanks... very nice
@KavyaGupta03
@KavyaGupta03 8 ай бұрын
@codestorywithMIK sir pls can you make video on todays GFG POTD maximum index plsss
@codestorywithMIK
@codestorywithMIK 8 ай бұрын
Hi there, Actually I am travelling and hence a little diffuse to post videos after early morning. Let me try to make it once I get back home. Hope you understand ❤️
@gauravbanerjee2898
@gauravbanerjee2898 8 ай бұрын
Thanks a lot bhaiya ❤❤
@swagboltey102
@swagboltey102 8 ай бұрын
Me har problem apki video deke samjke karta hu par own se ni karpaata hu kya ki apki playlist follow Karu ya phir own se hi try karu
@ishaansharma6553
@ishaansharma6553 8 ай бұрын
thankyou bhaiyaaaaa
@souravjoshi2293
@souravjoshi2293 8 ай бұрын
easy the aaa wala 🙂
@realmagnus230
@realmagnus230 8 ай бұрын
Plz bhaiya aja ka gfg potd video solution Bano
@codestorywithMIK
@codestorywithMIK 8 ай бұрын
Hi there, Actually I am travelling and hence a little diffuse to post videos after early morning. Let me try to make it once I get back home. Hope you understand ❤️
@realmagnus230
@realmagnus230 8 ай бұрын
@@codestorywithMIK thanks Bhai 😍
@parthbhatti4151
@parthbhatti4151 8 ай бұрын
Rabin-Karp Algorithm please build video on this and special the theory part it is hard to understand
@codestorywithMIK
@codestorywithMIK 8 ай бұрын
Coming this weekend (most probably sunday) My trip will be over by then 😇❤️🙏 Hope you understand
@ugcwithaddi
@ugcwithaddi 8 ай бұрын
👌🏻👌🏻👌🏻
@infinitygaming7192
@infinitygaming7192 8 ай бұрын
bahiaya geeksforgeeks ke bhe dala kero please
@DeepakSingh-fd2ix
@DeepakSingh-fd2ix 8 ай бұрын
sir please upload todays GFG POTD problem i.e RABIN KARP ALGORITHM
@codestorywithMIK
@codestorywithMIK 8 ай бұрын
Coming this weekend (most probably sunday) My trip will be over by then 😇❤️🙏 Hope you understand
@ru45098
@ru45098 8 ай бұрын
Is graph concepts playlist complete d?
@codestorywithMIK
@codestorywithMIK 8 ай бұрын
Yes it’s almost complete. Just few advanced topics are left which I will be covering soon.
@santhosh7042
@santhosh7042 8 ай бұрын
For follow up question why can't I use str.substring(I,j+1) for java. Is it still to use dequeue
@codestorywithMIK
@codestorywithMIK 8 ай бұрын
Yep you can use that too
@santhosh7042
@santhosh7042 8 ай бұрын
@@codestorywithMIK your videos keep motivating me and helps to understand(visulaize) the different approaches thank you so much bhaiya. Bro can you please list out greedy approaches like how to come up with solution. I'm having hard time with greedy approaches can't able to think for solution.
@codestorywithMIK
@codestorywithMIK 8 ай бұрын
Thank you so much for your kind words. Let me soon plan to make a dedicated playlist for Greedy Concepts
@santhosh7042
@santhosh7042 8 ай бұрын
@@codestorywithMIK that's great news to hear.
@abhishektripathi3904
@abhishektripathi3904 8 ай бұрын
Another approach with same time and space complexity: class Solution { public: int minimumLength(string s) { int n = s.length(); if(n == 1) return 1; int i = 0, j = n-1; int ans = 0; while(i
@tutuimam3381
@tutuimam3381 8 ай бұрын
❤❤❤❤❤❤
@sakshamshrivastava3482
@sakshamshrivastava3482 8 ай бұрын
timeompleity O(n^2) nhi ghogi kya 2 while loop
@codestorywithMIK
@codestorywithMIK 8 ай бұрын
The time complexity of the provided code is O(n) because it uses two pointers, 'i' and 'j', to iterate through the string 's'. The while loop conditions ensure that the pointers move towards the center of the string as long as the characters at those positions are equal. In the worst case, each character in the string is visited once, leading to a linear time complexity of O(n), where 'n' is the length of the input string.
@kashifhussain1872
@kashifhussain1872 8 ай бұрын
Hey, I know that you have posted dsa sheet. But I request you to post a sheet which contains only the problems you have posted their solutions. Which can be completed in 3 - 4 months. I request you to do it because I have become addicted to your videos. I am not preferring to see other you tube channel other than your channel
@codestorywithMIK
@codestorywithMIK 8 ай бұрын
Hi there, This seems a good idea. As I am travelling now, let me start on this when I get back by end of this week
@coderletscode
@coderletscode 8 ай бұрын
Bhai you travel a lot can you give us reason of your travelling for our patient 😅
@theOmKumar
@theOmKumar 8 ай бұрын
//APPROACH 2: deque O(N) O(N) class Solution { public: int minimumLength(string s) { deque dq; for(auto &ch : s){ dq.push_back(ch); } while(dq.front() == dq.back() && dq.size() > 1){//if size is 1 then prefix and suffix will intersect char currCh = dq.front(); while(!dq.empty() && dq.front() == currCh){//letting prefix engulf whole string dq.pop_front(); } while(!dq.empty() && dq.back() == currCh){ dq.pop_back(); } } return dq.size(); } };
@souravjoshi2293
@souravjoshi2293 8 ай бұрын
thanks man
@lakshaykumar4589
@lakshaykumar4589 8 ай бұрын
hey can anyone please tell me the problem with this code int minimumLength(string s) { int n=s.size(); int i=0; int j=n-1; char previ='#'; char prevj='#'; while(i
Blind 75 Leetcode Java - All Questions Solved
11:40:55
Destination FAANG
Рет қаралды 33 М.
Hoodie gets wicked makeover! 😲
00:47
Justin Flom
Рет қаралды 134 МЛН
Муж внезапно вернулся домой @Oscar_elteacher
00:43
История одного вокалиста
Рет қаралды 6 МЛН
БУ, ИСПУГАЛСЯ?? #shorts
00:22
Паша Осадчий
Рет қаралды 2,9 МЛН
The IMPOSSIBLE Puzzle..
00:55
Stokes Twins
Рет қаралды 169 МЛН
STOP Sankalp Jauhari! @sankalpjauhari
16:07
Nishant Jindal [IIT Delhi]
Рет қаралды 19 М.
How I would learn Leetcode if I could start over
18:03
NeetCodeIO
Рет қаралды 688 М.
Remove Nth Node From End of List | 1 Pass | 2 Pass | Leetcode 19
21:30
codestorywithMIK
Рет қаралды 4,8 М.
ASHNEER GROVER GOT ROASTED BY SALMAN KHAN!
13:08
Thugesh Unfiltered
Рет қаралды 1 МЛН
Hoodie gets wicked makeover! 😲
00:47
Justin Flom
Рет қаралды 134 МЛН