I was asked to make an algorithm to do the best fit for some music in the minimum number of folders .
The folders has a fixed size ( like the folders can only hold 100 minutes of music ).
for example : i have music with these lengths ( 50 - 30 -20 - 20 -80 - 70 -15 - 15) and the folder size is 100 mins .
The result should be 3 folders .
I don't even know how the algorithm works . any ideas ?!