920. Number of Music Playlists

Description

Here

Intuition

这题脑子有屎,K的真正的意思是,两首歌之间要间隔K

显然dp, dp[i][j] denotes the number of different playlists that uses j unique songs, and the playlist of i length

Pitfall

Solution

Solution

results matching ""

    No results matching ""