space is used in expanding method because string odd ,string even take o(n) space complexity
@venkadeshb79736 ай бұрын
Yeah, we can optimize it by storing the left and right indices.
@hishamakmal21493 ай бұрын
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; } } }
@arpitgoyal203517 күн бұрын
Amazing bro keep grinding
@phoddaal713010 ай бұрын
Many Many Happy Returns of the Day 🥳🥳🥳
@HypotheticaVision10 ай бұрын
Happy Birthday broo...🎉🎉🎉
@sahilanand3010 ай бұрын
Happy Birthday Aryan 🎉
@TON-10810 ай бұрын
This playlist, gonna very helpful to final year students 🔥🔥
@sukhpreetsingh520010 ай бұрын
Happy birthday bhaiya and awesome video
@ashishgoyal625610 ай бұрын
Guru ji hppy wala bday 🙏🏿
@abhaythakur903410 ай бұрын
Happy Birthday Bhaiya... Thanku for putting your next level efforts to provide such an amazing content.
@ChiruBillion4 ай бұрын
which year he is born? 2002?
@omkumarjha274510 ай бұрын
Happy Birthday bhaiya
@kushagramishra563810 ай бұрын
Happy BirthDay Bhaiya 🥳🥳🎉
@nooob_coder10 ай бұрын
happy birthday bro.. awesome video❤
@djpsn709410 ай бұрын
Happy birthday and keep teaching us like this
@riteshMusk4 ай бұрын
happy birthdaay bhava ✨✨🎉🎉
@sriramphysics585310 ай бұрын
Happy birthday Aryan
@AkashKumar-bm4py10 ай бұрын
Happy Birthday Bro🎉🍻
@e2_04_abhijeetkumarsingh610 ай бұрын
Belated Happy Birthday Bhaiya
@technologybash910410 ай бұрын
Happy Birthday broo 🎉🎉🎉🎉🎉🎉
@ammanchhetri671610 ай бұрын
Happy Belated Birthday Bhai ;)
@shivamkumarsingh950010 ай бұрын
Happy birthday bhaiya 🎂🎉✨❣️
@suyashjadaun327910 ай бұрын
Happy Birthday Bhaiya...May your community become bigger.
@ChiruBillion4 ай бұрын
which year he is born? 2002?
@yashkalia231110 ай бұрын
Happy Birthday bhai
@krutikadave45345 ай бұрын
Good explanation. Thanks for all the knowledge.
@sunny0111110 ай бұрын
Happiest Birthday Bhaiya !!! keep growing!!
@ChiruBillion4 ай бұрын
which year he is born? 2002?
@chaitanya81210 ай бұрын
Happy birthday bro 🎉🥳
@harikrushnasuhagiya392510 ай бұрын
Happy Birthday bro
@playwithlinux4 ай бұрын
Nice explanation bro...
@lilgainz10 ай бұрын
Happy Birthday to you bro
@sarankumaar600910 ай бұрын
thanks for the video nice explanation
@codingkart2454 ай бұрын
what a coincidence, even I'm having birthday on 3rd Jan!!!!
@atulwadhwa19216 күн бұрын
didn't understand the bottom up
@ShubhamGupta-li3qj10 ай бұрын
broo please make the solution video of regular expression matching
@Gungun-sx9rn10 ай бұрын
can you please provide this pdf as well?
@codencode554610 ай бұрын
Hey bro be lated Happy B'day!! My name is Amish and your b'day and mine is on same Day hahah 😄❤
@ashishgoyal625610 ай бұрын
Guri ji ye matlab 100 days aap 1 question krwate jaaoge jo bohot jyada pucha gya.. if i am correct
@justlc76 ай бұрын
Thanks bro, but i would request if you can share the pdf of the notes, would be grateful!
@showsshorts46965 ай бұрын
what base condition is used i-j
@ankitsihag63245 ай бұрын
can anybody tell me why (dp[l][r]!=-1) condition is used in DP solution during recursion?
@frouMagician5 ай бұрын
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.
@djpro64136 ай бұрын
Not have proper explaining the problem clearly first solve the problem your own then teach the pseado code