peak detection algorithm

How would you do it if you had only pen and paper?

  • that is in fact your algorithm -

Advice search array on the tutorial section