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.
Your "if ..." returns false positive on complex input.
976 Solvers
518 Solvers
"Low : High - Low : High - Turn around " -- Create a subindices vector
324 Solvers
Unique values without using UNIQUE function
174 Solvers
3143 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!