Cody

Solution 2075228

Submitted on 31 Dec 2019
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
str= 'He IS the witcher!! 1233 */-, ain"t hE?'; y_correct = [20,4,7,4,16,8]; assert(isequal(str_calc(str),y_correct))

ans = 20 ans = 4 ans = 7

Output argument "y" (and maybe others) not assigned during call to "str_calc". Error in Test1 (line 3) assert(isequal(str_calc(str),y_correct))

2   Fail
str= 'Love what u do!! # do what U love '; y_correct = [22,0,9,2,20,3]; assert(isequal(str_calc(str),y_correct))

ans = 22 ans = 0 ans = 9

Output argument "y" (and maybe others) not assigned during call to "str_calc". Error in Test2 (line 3) assert(isequal(str_calc(str),y_correct))

3   Fail
str= '23450011243;;[]{}***63``'; y_correct = [0,13,0,0,0,9]; assert(isequal(str_calc(str),y_correct))

ans = 0 ans = 13 ans = 0

Output argument "y" (and maybe others) not assigned during call to "str_calc". Error in Test3 (line 3) assert(isequal(str_calc(str),y_correct))

Suggested Problems

More from this Author145