Problem 2800. arithmetic progression
Solution Stats
Problem Comments
Solution Comments
-
1 Comment
J. S. Kowontan
on 12 May 2018
input => errorsequence = [10 20 21 40]
output => truesequence = [19 20 21 22] , errorposition = [1 4]
Result: Test fail
-
1 Comment
bainhome
on 4 Jul 2018
It took me a while to figure this one out. Your mathmatical intuition and ability of code implementation keep stunning me. The solution really a mind blower. Bravo!
-
2 Comments
Paul Berglund
on 28 Dec 2014
Note that this will fail on a short sequence e.g. [10 20 21 40]
Alfonso Nieto-Castanon
on 5 Jan 2015
I believe changing mode to median should work in all non-ambiguous cases (length>3)
Problem Recent Solvers97
Suggested Problems
-
Swap the first and last columns
17124 Solvers
-
477 Solvers
-
351 Solvers
-
Right Triangle Side Lengths (Inspired by Project Euler Problem 39)
1344 Solvers
-
Relative ratio of "1" in binary number
965 Solvers
More from this Author9
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!