3 ms·it depends whether you care about the local or global maximum.by andrewcooke 14y agoit depends whether you care about the local or global maximum.