3 ms·
Alternatively you can insert this code for the median of 3 version: centre = (left + right) / 2; if VA.lt(left, centre) if VA.lt(centre, right)
by CountHackulus 15y ago
Alternatively you can insert this code for the median of 3 version:
centre = (left + right) / 2;
if VA.lt(left, centre)
if VA.lt(centre, right)
VA.swap(left, centre)
else if VA.lt(left, right)
VA.swap(left, right)
else
if VA.lt(centre, right)
VA.swap(left, centre)
else if VA.lt(left, right)
VA.swap(left, right)