3 ms·Just do the Sedgewick thing and take the median of the first, middle, and last elements.by tmtvl 1y agoJust do the Sedgewick thing and take the median of the first, middle, and last elements.