#(DP/Combinatorics) Count Stable Binary Arrays with Fixed 0s/1s and Subarray Limit

7 messages · Page 1 of 1 (latest)

vagrant tree
#

It's actually a DSA question. But I’m interested in understanding how this problem can be approached using combinatorics (counting arrangements with constraints on consecutive elements).

timber bloomBOT
median burrow
#

i can perhaps write a generating function

vagrant tree
median burrow
#

ok i have a decent way to do it without DP (well actually the DP is kinda just hidden). let me write it up

vagrant tree
#

Okay.. go with it