Flip String to Monotone Increasing - Leetcode 926 - Python

Поділитися
Вставка
  • Опубліковано 16 гру 2024

КОМЕНТАРІ • 26

  • @samyakjain7422
    @samyakjain7422 Рік тому

    thanks man paused ur video at 2:56 coded myself ac in first go....i really like your way of teaching

  • @symbioticparasite6268
    @symbioticparasite6268 Рік тому +2

    Was researching this just an hour ago, you freaky psychic....

  • @hufsonian
    @hufsonian Рік тому +2

    The second solution is.. a beauty

  • @98Distruttore98
    @98Distruttore98 Рік тому +1

    It's 6:38 here in Italy. I slept less than 4h and my First thought After watching the request was: "Just count the numbers". Feel like a chad

  • @janvidalal476
    @janvidalal476 Рік тому +1

    omg this man never disappoints .sending you good energiesssssss

  • @clandestina_genz
    @clandestina_genz Рік тому +1

    Neetcode your explanation is an Uff! You are God Sent !

  • @sarvesh6785
    @sarvesh6785 Рік тому +2

    Thank you so much. Amazing explanation.

  • @avinashshukla6321
    @avinashshukla6321 Рік тому +1

    amazing explanation

  • @oneplusgeek7510
    @oneplusgeek7510 Рік тому +2

    This daily series is insane Neetcode!
    Thanks, from India!

  • @jessanraj9086
    @jessanraj9086 Рік тому

    This series is awesome and helpful

  • @KnightMirkoYo
    @KnightMirkoYo 6 місяців тому

    This is such a tricky one to figure out

  • @ray811030
    @ray811030 Рік тому +1

    Fuck this kind of problem. It's really hard to come up optimal solution within 5 mins when you get the question

  • @akankshasharma7498
    @akankshasharma7498 Рік тому +1

    The second solution was cool

  • @dhamotharakannanv6153
    @dhamotharakannanv6153 Рік тому

    @neetcode wondering what motivated you to create second channel which looks same as first

  • @hrithik7354
    @hrithik7354 Рік тому

    Much needed. Thanks.

  • @ngneerin
    @ngneerin Рік тому

    Beautiful second solution

  • @ashwin_kr
    @ashwin_kr Рік тому

    Why not get flips to the left and right of each index? For each position, number of 1s to the left+number of 0s to the right, then find the minimum over the list. Would take 3 passes, and O(n) space.
    Of course, less elegant than the optimal solution, but simpler than the backtracking solution imo.

  • @shubhamaryan8202
    @shubhamaryan8202 Рік тому

    Amazing 🔥🔥

  • @tetsu0xyz
    @tetsu0xyz Рік тому +6

    Could you tell me the difference between the previous channel and this channel? Harder problem on this channel? Anyway, I subscribed 🫡

    • @NeetCodeIO
      @NeetCodeIO  Рік тому +11

      I think most people on the main channel aren't interested in frequent LC videos, so I'd rather post them here.
      I'll be uploading a different style of video on the main channel from now on. And will upload one sometime tomorrow.

    • @CuriousAnonDev
      @CuriousAnonDev Рік тому +2

      @@NeetCodeIO yeah
      Leetcode videos are nice but the new kind of videos you're making on main channel are fun to watch :)
      Keep going sir 🫡

  • @recreationerz5549
    @recreationerz5549 Рік тому

    very nice

  • @Alagou
    @Alagou Рік тому

    eternal god

  • @rashzh5502
    @rashzh5502 Рік тому

    👍👍👍

  • @keerthivasan138
    @keerthivasan138 Рік тому

    Bro Pls do leetcode 2062

  • @krateskim4169
    @krateskim4169 Рік тому

    Awesome explanation