1866. Number of Ways to Rearrange Sticks With K Sticks Visible (Leetcode Hard)

Поделиться
HTML-код
  • Опубликовано: 19 сен 2024

Комментарии • 11

  • @Algorithmist
    @Algorithmist  3 года назад +2

    Were you able to have all the sticks visible?

  • @inspired_enough_to_grow_up
    @inspired_enough_to_grow_up 3 года назад +2

    Larry on Rank 44 😍🔥🔥🔥🔥🔥🔥🔥

    • @Algorithmist
      @Algorithmist  3 года назад

      Haha, should've gotten it faster but top down sadness.. :(

  • @pengli7213
    @pengli7213 3 года назад +2

    Where did you see this problem before?

    • @inspired_enough_to_grow_up
      @inspired_enough_to_grow_up 3 года назад +1

      @Programming Live with Larry why don't you make video solutions for binarysearch.com as well?
      I mean LC and BS both are same more or less..

    • @Algorithmist
      @Algorithmist  3 года назад

      @@inspired_enough_to_grow_up I don't have a great answer for that, I think maybe eventually haha

  • @bismeetsingh352
    @bismeetsingh352 3 года назад

    Sorry Larry, i dont understand the recurrence you explained.

    • @Algorithmist
      @Algorithmist  3 года назад

      Swing by the discord! It's a hard combinatoric problem..

  • @udoigogoi6828
    @udoigogoi6828 3 года назад

    Bro,why did u include n-1 multiplied in the second option

    • @Algorithmist
      @Algorithmist  3 года назад +1

      I kind of go over it in the diagram section - there are that many ways to put it in the back

    • @udoigogoi6828
      @udoigogoi6828 3 года назад

      @@Algorithmist yes boss❤️❤️got it