Problem 42839. Identify the sequence
Solution Stats
Problem Comments
-
5 Comments
Show
2 older comments
Peng Liu
on 2 May 2016
Perhaps a better strategy is to make a new problem instead of frequently re-scoring due to incremental changes. BTW, the newly added last test case (#11) should return 2, not 1.
Jean-Marie Sainthillier
on 2 May 2016
Yes, Test 11 -> 2
Tim
on 5 May 2016
Test case 11 is still incorrect.
Jean-Marie Sainthillier
on 9 May 2016
x = [i -2 -4i 8 16i] is an arithmetic serie ?
HH
on 27 May 2016
Test case 11 fixed. Thanks.
Solution Comments
-
1 Comment
Jan Orwat
on 2 May 2016
Your "if ..." returns false positive on complex input.
-
2 Comments
Problem Recent Solvers22
Suggested Problems
-
Find the two most distant points
2308 Solvers
-
1747 Solvers
-
Is my wife right? Now with even more wrong husband
1302 Solvers
-
Replace multiples of 5 with NaN
413 Solvers
-
137 Solvers
More from this Author38
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!