Problem 2349. Elements with highest local average
Solution Stats
Problem Comments
Solution Comments
-
3 Comments
Jon
on 5 Jun 2014
Will fail on [0 0 0 0] or any longer vector of 0's.
J.R.! Menzinger
on 5 Jun 2014
I know... ;-) but it passes all the cases.
J.R.! Menzinger
on 5 Jun 2014
I implement this other solution before: http://www.mathworks.de/matlabcentral/cody/problems/2349-elements-with-highest-local-average/solutions/450770
Problem Recent Solvers78
Suggested Problems
-
Determine whether a vector is monotonically increasing
16643 Solvers
-
Find the two most distant points
2308 Solvers
-
4795 Solvers
-
412 Solvers
-
Construct an index vector from two input vectors in vectorized fashion
341 Solvers
More from this Author44
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!