Aanchal Jain
Aanchal Jain
  • Видео 3
  • Просмотров 8 842
2808. Minimum Seconds to Equalize a Circular Array||Leetcode||Logic Explained
Error Correction: At 15:31, between 7&1 four different elements are present and the answer would be ceil(4/2), i.e. 2. The final answer is not affected.
Recommendation: Watch it at 1.75x or 2x
Like,share and subscribe
Просмотров: 204

Видео

214.Shortest Palindrome || Leetcode || Solved&Explained || C++214.Shortest Palindrome || Leetcode || Solved&Explained || C++
214.Shortest Palindrome || Leetcode || Solved&Explained || C++
Просмотров 9 тыс.Год назад
Solved a problem from leetcode. Problem Name:Shortest Palindrome Level:Hard Link to the problem: leetcode.com/problems/shortest-palindrome/description/ Recommended: Watch it on 1.75x or 2x.
Problem 1176C|| Loose it||Codeforces||ExplainedProblem 1176C|| Loose it||Codeforces||Explained
Problem 1176C|| Loose it||Codeforces||Explained
Просмотров 188Год назад
Watch it on 1.75x or 2x

Комментарии

  • @VivekSharma-sk3vp
    @VivekSharma-sk3vp Час назад

    Memory Limit Exceeded!!😭😭

  • @soumya_suman
    @soumya_suman 18 часов назад

    Thank You !!!

  • @eklavyacodinghub
    @eklavyacodinghub 19 часов назад

    thanks ma'am for making this concept so easy

  • @srikarsaini
    @srikarsaini День назад

    10:06 Here we should not increment "j". There is a mistake in explanation. Check the code we are not incrementing "j" there in else statement. we are only changing the pointer "i".

  • @anonymoustrolls7952
    @anonymoustrolls7952 День назад

    she just taught KMP, good explanation

  • @shikharai-tl4vb
    @shikharai-tl4vb День назад

    you tried well Understanding a problem and effectively explaining it to others are two entirely different skills.

  • @Yourcodehelper
    @Yourcodehelper День назад

    todays daily problem

  • @ArnabBhadra02
    @ArnabBhadra02 День назад

    Is it possible to solve Using longest common substring between s and rev(s) and after that return the total length -s

  • @shhivanshh
    @shhivanshh 8 дней назад

    Thanks a lot Aanchal! Your explanation was super clear and easy. You should continue making more such videos and with consistency, you'll definitely grow your channel sure by making playlists or adding thumbnails to your videos. Really appreciate you efforts!

  • @unclezee7369
    @unclezee7369 27 дней назад

    Best explanation so far

  • @shh442
    @shh442 Месяц назад

    class Solution: def shortestPalindrome(self, s: str) -> str: if s == s[::-1]: return s n = len(s) # Loop to find the largest palindrome prefix for i in range(n, 0, -1): if s[:i] == s[:i][::-1]: break # Add the reverse of the suffix to the start of the string suffix = s[i:] return suffix[::-1] + s

  • @satyamaditya384
    @satyamaditya384 Месяц назад

    Thank you ma'am for such a great explanation, I had been struggling with KMP too, but now concepts are crystal clear. Thanks a lot!!!

  • @priyanshupriyam174
    @priyanshupriyam174 Месяц назад

    Thanks a lot ma'am, cleared my kmp concepts well.

  • @naive-fleek7420
    @naive-fleek7420 2 месяца назад

    you are soo smart

  • @path8799
    @path8799 2 месяца назад

    Understood💯❤

  • @Rahul-kw6zf
    @Rahul-kw6zf 3 месяца назад

    Finally After 2 days got h pretty good solution!! Understood❤

  • @silent-st1no
    @silent-st1no 3 месяца назад

    very very good explanation, thank you so much you are the great❤

  • @machans-203
    @machans-203 4 месяца назад

    But it doesn't pass all test cases.. for string "aabba" the ans is "abbaabba" how is it possible And also, "abb" -> ans: "bbabb"

    • @harmankour1711
      @harmankour1711 3 месяца назад

      because given is we are allowed to add in the front only and it is passing all the test case just check your code again

  • @hhcdghjjgsdrt235
    @hhcdghjjgsdrt235 5 месяцев назад

    You got one subscriber

  • @ujwalchawla6721
    @ujwalchawla6721 6 месяцев назад

    keep going🤘

  • @PankajKumar-pk9dm
    @PankajKumar-pk9dm 7 месяцев назад

    loved the approach and awesome explanation

  • @YashJaiswal-lr7vi
    @YashJaiswal-lr7vi 7 месяцев назад

    Kindly add problem link in description also. Also use some tags for good reach.

  • @raviroy84
    @raviroy84 8 месяцев назад

    Clear explaination❤

  • @AdityaKumar-be7hx
    @AdityaKumar-be7hx 8 месяцев назад

    Great explanation! Only tip is we can reuse the "t" variable instead of creating a new shorter string. return t.substr(0, s.size()-i)+s;

  • @VishalYadav-gk1kg
    @VishalYadav-gk1kg 9 месяцев назад

    Very Nice Explanation Mam, Thank you !

  • @samarthbhatia3905
    @samarthbhatia3905 10 месяцев назад

    nice

  • @hackingkingdom5634
    @hackingkingdom5634 10 месяцев назад

    Nice approach Helpful✋

  • @abhishekverma7604
    @abhishekverma7604 11 месяцев назад

    thanks for the algorithm,since code part is way too easy and self implementable...

  • @aanchaljain4610
    @aanchaljain4610 Год назад

    Error Correction: At 15:31, between 7&1 four different elements are present and the answer would be ceil(4/2), i.e. 2. The final answer is not affected.

  • @ss8273
    @ss8273 Год назад

    thanks sister explained very well🙌🙌

  • @materialscience8301
    @materialscience8301 Год назад

    thanks for make it. your explanation is very well 😊😊 i hope you will continue ..& grow

  • @avneedadhich9185
    @avneedadhich9185 Год назад

    My search for it's solution finally came to an end . Thanks for such a great explanation .

  • @akshitajain5602
    @akshitajain5602 Год назад

    Very well explained 👍