This solution is outdated. To rescore this solution, sign in.
-
1 Comment
Kwin
on 18 Jul 2017
Not all test cases seem to be correct. For example x=3 would imply that the next value should be x=3-3=0, so y_correct=Inf and not 6
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!