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 Solvers24
Suggested Problems
-
Find the numeric mean of the prime numbers in a matrix.
8061 Solvers
-
429 Solvers
-
1180 Solvers
-
Sum all integers from 1 to 2^n
12451 Solvers
-
"Low : High - Low : High - Turn around " -- Create a subindices vector
498 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!