Count the ways to paint a fence in k colours with no long run of one colour

mediumAbout 30 minutesUpdated CodingProdynamic-programmingcountingprefix-sumsmodular-arithmeticsliding-window
Not solved

Share this question

Problem

Private, and saved in this browser as you type. All your notes are on My lists.

Every question and answer7 days, one payment