Find Peak Element — Interactive Visualizer

Compare mid with its right neighbor; the slope tells you which side must contain a peak.