304
правки
Изменения
→Псевдокод
:<code>index = -1</code>
:<code>for (int i = first + 1; i < last; i++)</code>
::<code>distance = dist(points[i],segment(points[first],points[last]))</code>
::<code>if (distance > max && distance > eps)</code>
:::<code>max = distance, index = i</code>