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
-
Remove the small words from a list of words.
1153 Solvers
-
Test if two numbers have the same digits
227 Solvers
-
197 Solvers
-
243 Solvers
-
Pernicious Anniversary Problem
786 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!