2466. Count Ways To Build Good Strings - Day 30/31 Leetcode December Challenge

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ม.ค. 2025

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

  • @Algorithmist
    @Algorithmist  5 วันที่ผ่านมา +4

    Were you able to build them up good?

  • @karanchaudhary4832
    @karanchaudhary4832 5 วันที่ผ่านมา +1

    Yes,with your help we were able to build.

  • @VarshilNarola
    @VarshilNarola 5 วันที่ผ่านมา

    Also, you can space optimise this further to O(max(zero,one)) using bottoms up dp and dp length of window max(zero,one)..

    • @HD_247
      @HD_247 4 วันที่ผ่านมา +1

      LOL, can you see the "Solved" check at the top right of the problem description?
      He probably submitted 10x times already, he knows the things.
      Yet, if he solved it too quickly that would not entertain the TH-cam audience, or "advanced" techniques just scare the beginners away (major of viewers).

    • @VarshilNarola
      @VarshilNarola 4 วันที่ผ่านมา

      @ I just informed the audience about a technique and I have no where written that I am not agreeing to his approach..

    • @Algorithmist
      @Algorithmist  4 วันที่ผ่านมา

      ya, I don't know if I remembered to mention it this time, haha, it is something I mention often, and I think I did it last time as well.
      That said, it's also part of the Q-matrix as well.

  • @renatoemersencorderio48
    @renatoemersencorderio48 2 วันที่ผ่านมา

    may i ask why you define functions inside functions?

    • @Algorithmist
      @Algorithmist  วันที่ผ่านมา

      keeps the scope tight