Thanks for the corrections. Test cases are corrected now.
great (and one more thing, on test 6 I believe y_correct should have 5 elements instead of 4)
Again agree with Alonso: Test 6 is not correct.
My apologies. Test case 6 is corrected now.
vectors can only contain values with the same "data type", so tests 4&5 are not really working as expected (e.g. all values in x for test 4 are being converted to uint8)...
Return the 3n+1 sequence for n
6213 Solvers
2197 Solvers
First non-zero element in each column
601 Solvers
Convert a numerical matrix into a cell array of strings
469 Solvers
330 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!