You have n different songs and want to create a playlist of length goal.
A playlist is considered valid if:
Every song is played at least
A song can only be played again if at least k other songs have been played after its previous occurrence.
Given n, goal, and k, return the total number of possible playlists. Since the answer can be very large, return it modulo
Constraints:
k n goal
You have n different songs and want to create a playlist of length goal.
A playlist is considered valid if:
Every song is played at least
A song can only be played again if at least k other songs have been played after its previous occurrence.
Given n, goal, and k, return the total number of possible playlists. Since the answer can be very large, return it modulo
Constraints:
k n goal