3029. Minimum Time to Revert Word to Initial State I (Leetcode Medium)

Sdílet
Vložit
  • čas přidán 2. 02. 2024
  • Larry solves and analyzes this Leetcode problem as both an interviewer and an interviewee. This is a live recording of a real engineer solving a problem live - no cuts or edits!
    Problem: leetcode.com/problems/minimum...
    Twitch: / larryny
    Discord: / discord
    Instagram: / larrysomewhere
    #leetcode #coding #programming
  • Věda a technologie

Komentáře • 12

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

    Did you revert the word?

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

    Thanks for the intuition!!

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

    Great explanation of intuition ♥

  • @vickydas6480
    @vickydas6480 Před 5 měsíci +1

    Man, what a solution, how do I gain this type of intuition? I wasted my time figuring out what characters to add in the end. :(

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

      to be honest it just came to me, but a lot of practice will help for it

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

      Thank you...👍

    • @merc.5802
      @merc.5802 Před 5 měsíci

      it took me 50mins of frustration to figure this one out@@vickydas6480

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

    I didn't understand the answer at first. But then I did! I don't have a high mathematical base, so I'll just have to practice. Can I ask you a question about the strategy of learning algorithms, there is such a practice: "If you haven't solved the problem in 15 minutes, then look at the solution and work it out, then in a similar problem you will know what to do", i.e. don't get stuck on the problem for hours (or days). Is the strategy good, and how did you practice?

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

      I think in these cases, it's better to have a partner (or a discord!) who can tell you for each problem. Some problems you need to learn something new, but others you should be able to solve, given more time. 15 minutes is nothing.

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

    how can i solve 4 question in contest how can i increase my intuition power

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

    nice