5. Longest Palindromic Substring | Day 001 | Brute - Better - Optimal | 2 Pointers | DP

  Рет қаралды 22,566

Aryan Mittal

Aryan Mittal

Күн бұрын

Пікірлер: 47
@amanverma-sc8my
@amanverma-sc8my 9 ай бұрын
space is used in expanding method because string odd ,string even take o(n) space complexity
@venkadeshb7973
@venkadeshb7973 6 ай бұрын
Yeah, we can optimize it by storing the left and right indices.
@hishamakmal2149
@hishamakmal2149 3 ай бұрын
Thanks for the approaches! But i dont think we need memoization in 2nd approach, if we use the following : for (int i = 0; i < n; i++) { for (int j = i; j < n; j++) { if (j - i + 1 > maxLen && solve(s, i, j)) { maxLen = j - i + 1; start = i; } } }
@arpitgoyal2035
@arpitgoyal2035 17 күн бұрын
Amazing bro keep grinding
@phoddaal7130
@phoddaal7130 10 ай бұрын
Many Many Happy Returns of the Day 🥳🥳🥳
@HypotheticaVision
@HypotheticaVision 10 ай бұрын
Happy Birthday broo...🎉🎉🎉
@sahilanand30
@sahilanand30 10 ай бұрын
Happy Birthday Aryan 🎉
@TON-108
@TON-108 10 ай бұрын
This playlist, gonna very helpful to final year students 🔥🔥
@sukhpreetsingh5200
@sukhpreetsingh5200 10 ай бұрын
Happy birthday bhaiya and awesome video
@ashishgoyal6256
@ashishgoyal6256 10 ай бұрын
Guru ji hppy wala bday 🙏🏿
@abhaythakur9034
@abhaythakur9034 10 ай бұрын
Happy Birthday Bhaiya... Thanku for putting your next level efforts to provide such an amazing content.
@ChiruBillion
@ChiruBillion 4 ай бұрын
which year he is born? 2002?
@omkumarjha2745
@omkumarjha2745 10 ай бұрын
Happy Birthday bhaiya
@kushagramishra5638
@kushagramishra5638 10 ай бұрын
Happy BirthDay Bhaiya 🥳🥳🎉
@nooob_coder
@nooob_coder 10 ай бұрын
happy birthday bro.. awesome video❤
@djpsn7094
@djpsn7094 10 ай бұрын
Happy birthday and keep teaching us like this
@riteshMusk
@riteshMusk 4 ай бұрын
happy birthdaay bhava ✨✨🎉🎉
@sriramphysics5853
@sriramphysics5853 10 ай бұрын
Happy birthday Aryan
@AkashKumar-bm4py
@AkashKumar-bm4py 10 ай бұрын
Happy Birthday Bro🎉🍻
@e2_04_abhijeetkumarsingh6
@e2_04_abhijeetkumarsingh6 10 ай бұрын
Belated Happy Birthday Bhaiya
@technologybash9104
@technologybash9104 10 ай бұрын
Happy Birthday broo 🎉🎉🎉🎉🎉🎉
@ammanchhetri6716
@ammanchhetri6716 10 ай бұрын
Happy Belated Birthday Bhai ;)
@shivamkumarsingh9500
@shivamkumarsingh9500 10 ай бұрын
Happy birthday bhaiya 🎂🎉✨❣️
@suyashjadaun3279
@suyashjadaun3279 10 ай бұрын
Happy Birthday Bhaiya...May your community become bigger.
@ChiruBillion
@ChiruBillion 4 ай бұрын
which year he is born? 2002?
@yashkalia2311
@yashkalia2311 10 ай бұрын
Happy Birthday bhai
@krutikadave4534
@krutikadave4534 5 ай бұрын
Good explanation. Thanks for all the knowledge.
@sunny01111
@sunny01111 10 ай бұрын
Happiest Birthday Bhaiya !!! keep growing!!
@ChiruBillion
@ChiruBillion 4 ай бұрын
which year he is born? 2002?
@chaitanya812
@chaitanya812 10 ай бұрын
Happy birthday bro 🎉🥳
@harikrushnasuhagiya3925
@harikrushnasuhagiya3925 10 ай бұрын
Happy Birthday bro
@playwithlinux
@playwithlinux 4 ай бұрын
Nice explanation bro...
@lilgainz
@lilgainz 10 ай бұрын
Happy Birthday to you bro
@sarankumaar6009
@sarankumaar6009 10 ай бұрын
thanks for the video nice explanation
@codingkart245
@codingkart245 4 ай бұрын
what a coincidence, even I'm having birthday on 3rd Jan!!!!
@atulwadhwa192
@atulwadhwa192 16 күн бұрын
didn't understand the bottom up
@ShubhamGupta-li3qj
@ShubhamGupta-li3qj 10 ай бұрын
broo please make the solution video of regular expression matching
@Gungun-sx9rn
@Gungun-sx9rn 10 ай бұрын
can you please provide this pdf as well?
@codencode5546
@codencode5546 10 ай бұрын
Hey bro be lated Happy B'day!! My name is Amish and your b'day and mine is on same Day hahah 😄❤
@ashishgoyal6256
@ashishgoyal6256 10 ай бұрын
Guri ji ye matlab 100 days aap 1 question krwate jaaoge jo bohot jyada pucha gya.. if i am correct
@justlc7
@justlc7 6 ай бұрын
Thanks bro, but i would request if you can share the pdf of the notes, would be grateful!
@showsshorts4696
@showsshorts4696 5 ай бұрын
what base condition is used i-j
@ankitsihag6324
@ankitsihag6324 5 ай бұрын
can anybody tell me why (dp[l][r]!=-1) condition is used in DP solution during recursion?
@frouMagician
@frouMagician 5 ай бұрын
The subproblem or the recursion function that is running at some point in time, what if it had occured before ? so dp[i][j] stores the value of every subproblem and we check if its empty (containing -1) or does it contain the value or in other words, have we visited this subproblem before. If we have, there is no use of computing it again. So we return dp[i][j]. This is actually the crux of dp. Optimizing the exponential complexity by eliminating repeating subproblems.
@djpro6413
@djpro6413 6 ай бұрын
Not have proper explaining the problem clearly first solve the problem your own then teach the pseado code
@reroyallover9169
@reroyallover9169 5 ай бұрын
10:37 ak 47 on burst mode
1. Two Sum | Day 003 | Brute - Better - Optimal
12:12
Aryan Mittal
Рет қаралды 1 М.
Can You Find Hulk's True Love? Real vs Fake Girlfriend Challenge | Roblox 3D
00:24
МЕНЯ УКУСИЛ ПАУК #shorts
00:23
Паша Осадчий
Рет қаралды 5 МЛН
Don't underestimate anyone
00:47
奇軒Tricking
Рет қаралды 21 МЛН
Симбу закрыли дома?! 🔒 #симба #симбочка #арти
00:41
Симбочка Пимпочка
Рет қаралды 5 МЛН
LeetCode 5.  Longest Palindromic Substring (Algorithm Explained)
14:40
Leetcode 5. Longest Palindromic Substring
23:52
Code with Alisha
Рет қаралды 49 М.
Longest Palindromic Substring - Python - Leetcode 5
8:11
NeetCode
Рет қаралды 557 М.
Pointers in C / C++ [Full Course]
3:47:23
freeCodeCamp.org
Рет қаралды 4,5 МЛН
Longest Common Subsequence
53:51
BUILD_N_TRAVEL
Рет қаралды 32
Can You Find Hulk's True Love? Real vs Fake Girlfriend Challenge | Roblox 3D
00:24