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 Solvers25
Suggested Problems
-
36096 Solvers
-
3274 Solvers
-
1835 Solvers
-
How many monitors are connected ?
147 Solvers
-
Find Index of maximum Value and maximum Value of a vector
157 Solvers
More from this Author40
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!