input => errorsequence = [10 20 21 40]
output => truesequence = [19 20 21 22] , errorposition = [1 4]
Result: Test fail
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!
Note that this will fail on a short sequence e.g. [10 20 21 40]
I believe changing mode to median should work in all non-ambiguous cases (length>3)
Given two strings, find the maximum overlap
477 Solvers
1066 Solvers
Implement simple rotation cypher
969 Solvers
Check that number is whole number
1220 Solvers
Return fibonacci sequence do not use loop and condition
232 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!