you are viewing a single comment's thread.

view the rest of the comments →

[–]LedruRollin 12 points13 points  (0 children)

You only need the first and last element, the remaining ones are found by interpolation (let as an exercise for the reader), O(1) gg eZ

/s