Problem 2225. Three...is a magic number.
36.88% Correct | 63.12% Incorrect
Last Solution submitted on Mar 21, 2023
Jan Orwat on 10 Apr 2014
This should not work in general. It returns false-positive for consecutive 1 5 7 :-)
Problem Recent Solvers77
Flag largest magnitude swings as they occur
Construct an index vector from two input vectors in vectorized fashion
More from this Author80
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!