> int gap = (pp[pp.length-1] - pp[0]) - (pp.length - 1);
>
> Don't want to cause an IndexOutOfBoundsException


Right... that's what I meant with "(boundary cases)"...

Reply via email to