Given a consecutive list of numbers of size $n$, and a total sum figure $t$, what is the simplest way of finding the minimum $min$ and maximum $max$ numbers of that consecutive list?
For example,
$t = 10$
$n = 4$
$1 + 2 + 3 + 4 = 10$
$min = 1, max = 4$
Is there a way to find out the min/max for any sum value?
Updated: Added size of list condition