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 UA-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?