1531. String Compression II | 3 Ways | Adobe | Microsoft | Uber | DP-HARD

Sdílet
Vložit
  • čas přidán 5. 07. 2024
  • In this video, I'll talk about how to solve Leetcode 1531. String Compression II
    Problem Link: leetcode.com/problems/string-...
    Checkout DSA-169 Series: • Aryan DSA-169 Series |...
    Sol1 - leetcode.com/problems/string-...
    Sol2 - leetcode.com/problems/string-...
    Sol3 - leetcode.com/problems/string-...
    Let's Connect:
    📝Linkedin: / aryan-mittal-0077
    📸 Instagram: / ez.pz.dsa
    📱Telegram : t.me/aryan_mittal_group
    🤖 Github: github.com/aryan-0077
    About Me:
    I am Aryan Mittal - A Software Engineer in Goldman Sachs, Speaker, Creator & Educator. During my free time, I create programming education content on this channel & also how to use that to grow :)
    ✨ Timelines✨
    0:00 - Important Baate
    0:46 - Problem Explanation
    3:06 - Why Greedy?
    5:16 - Simple Recursion
    14:40 - Recap of Approach 1
    20:00 - Code Explanation
    25:06 - Complexity Analysis
    25:41 - Optimising Approach1
    29:14 - Approach2 Code Explanation
    32:14 - AI Greedy + DP :)
    41:24 - Code Explanation & Complexity Analysis
    ✨ Hashtags ✨
    #programming #Interviews #leetcode #faang #maang #datastructures #algorithms

Komentáře • 19

  • @ishanbhardwaj6082
    @ishanbhardwaj6082 Před 6 měsíci +1

    Thank you bro! Your videos are truly amazing, they've helped me build intuition and sometimes I don't need to watch the entire video in order to solve the question. As a professional, I've been trying to get into really good companies, if you could create a video on how to apply and get referrals it would be amazing! Thanks! :)

  • @satwiktatikonda764
    @satwiktatikonda764 Před 6 měsíci +3

    excellent solution bro!! keep posting all solutions possible like this we will watch no matter how long the
    video length is

  • @jagadeeshp1163
    @jagadeeshp1163 Před 5 měsíci

    Appreciate you for mentioning mik 😍

  • @Adityasharma-ii3dg
    @Adityasharma-ii3dg Před 6 měsíci

    bahot hard bahot hard

  • @AdityaKumar-ye1ex
    @AdityaKumar-ye1ex Před 6 měsíci

    what company tag extension do u use ?

  • @00RohitRoshan
    @00RohitRoshan Před 6 měsíci

    bahot achha samjhate ho aap

  • @kgCode658
    @kgCode658 Před 6 měsíci

    Hey Aryan, do you think first method is good for interview coz optimized method is something out of the box.

  • @00RohitRoshan
    @00RohitRoshan Před 6 měsíci

    Keep it UP bro

  • @x_x3557
    @x_x3557 Před 6 měsíci

    It was a nice explanation, but I was a little confused with the optimization: In the greedy approach what is the logic behind forming groups of same characters ?

  • @dayashankarlakhotia4943
    @dayashankarlakhotia4943 Před 6 měsíci

    please right on stream code

  • @RajGupta-cu9hi
    @RajGupta-cu9hi Před 6 měsíci +1

    When i solve it through 1st sol
    Still got TLE how?

    • @RajGupta-cu9hi
      @RajGupta-cu9hi Před 6 měsíci

      @@Glitch40417 C++

    • @pabitrakb5291
      @pabitrakb5291 Před 6 měsíci

      Try Passing string by reference

    • @kgCode658
      @kgCode658 Před 6 měsíci +1

      try passing string by reference and use dp outside class to resolve memory overflow issue

    • @raftywate
      @raftywate Před 6 měsíci

      @@kgCode658 why did it cause memory overflow issue? I got into this situation. I put the dp inside class and it was giving me issues.

  • @kashishshah3206
    @kashishshah3206 Před 6 měsíci +3

    who is mazhar and which is his channel?