Flip String to Monotone Increasing - Leetcode 926 - Python

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ต.ค. 2024

ความคิดเห็น • 26

  • @symbioticparasite6268
    @symbioticparasite6268 ปีที่แล้ว +2

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

  • @samyakjain7422
    @samyakjain7422 ปีที่แล้ว

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

  • @hufsonian
    @hufsonian ปีที่แล้ว +2

    The second solution is.. a beauty

  • @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 !

  • @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

  • @avinashshukla6321
    @avinashshukla6321 ปีที่แล้ว +1

    amazing explanation

  • @sarvesh6785
    @sarvesh6785 ปีที่แล้ว +1

    Thank you so much. Amazing explanation.

  • @jessanraj9086
    @jessanraj9086 ปีที่แล้ว

    This series is awesome and helpful

  • @akankshasharma7498
    @akankshasharma7498 ปีที่แล้ว +1

    The second solution was cool

  • @KnightMirkoYo
    @KnightMirkoYo 4 หลายเดือนก่อน

    This is such a tricky one to figure out

  • @ngneerin
    @ngneerin ปีที่แล้ว

    Beautiful second solution

  • @hrithik7354
    @hrithik7354 ปีที่แล้ว

    Much needed. Thanks.

  • @dhamotharakannanv6153
    @dhamotharakannanv6153 ปีที่แล้ว

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

  • @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 🔥🔥

  • @oneplusgeek7510
    @oneplusgeek7510 ปีที่แล้ว +2

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

  • @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

  • @recreationerz5549
    @recreationerz5549 ปีที่แล้ว

    very nice

  • @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 🫡

  • @keerthivasan138
    @keerthivasan138 ปีที่แล้ว

    Bro Pls do leetcode 2062

  • @rashzh5502
    @rashzh5502 ปีที่แล้ว

    👍👍👍

  • @Alagou
    @Alagou ปีที่แล้ว

    eternal god

  • @krateskim4169
    @krateskim4169 ปีที่แล้ว

    Awesome explanation