To learn more about the newsletter, check our detailed About Page + FAQs
To help me understand you better, please fill out this anonymous, 2-min survey. If you liked this post, make sure you hit the heart icon in this email.
Recommend this publication to Substack over here
Are you ready for this,
Let’s jump right into it.
Problem
You are going on a road trip, and would like to create a suitable music playlist. The trip will require N
songs, though you only have M
songs downloaded, where M < N
. A valid playlist should select each song at least once, and guarantee a buffer of B
songs between repeats.
Given N
, M
, and B
, determine the number of valid playlists.
Keep reading with a 7-day free trial
Subscribe to Technology Made Simple to keep reading this post and get 7 days of free access to the full post archives.