Problem 42839. Identify the sequence
Solution Stats
Problem Comments
-
5 Comments
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.
Yes, Test 11 -> 2
Test case 11 is still incorrect.
x = [i -2 -4i 8 16i] is an arithmetic serie ?
Test case 11 fixed. Thanks.
Solution Comments
-
1 Comment
Your "if ..." returns false positive on complex input.
-
2 Comments
Problem Recent Solvers21
Suggested Problems
-
1302 Solvers
-
395 Solvers
-
Make a random, non-repeating vector.
5380 Solvers
-
271 Solvers
-
Return fibonacci sequence do not use loop and condition
384 Solvers
More from this Author35
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!