Jooel,

It is specific for this task in that if the given gap of one minute is not attainable, the function would fail.

So, if there were only two five-minute songs in a list, then the function would not work. But if there were only two 27-minute songs in a list, it would work.
_________________________
Eric