> index 0 holds values from 0-1, index 2 from 1-2 etc,
Well, now you are double counting the end values of the ranges. In your example 1 is included in both 0-1 and 1-2.
Well, now you are double counting the end values of the ranges. In your example 1 is included in both 0-1 and 1-2.
No comments yet.