Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Solution 272655

Submitted on 3 Jul 2013 by Clemens Giegerich

Correct

18Size
This is the leading solution.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test
Code Input and Output
1
Pass
 
%%
E = 'humankind';
S = 'dinosaurs';
y_correct = 33;
assert(isequal(OV(E,S),y_correct))
ans =
    39    33     0    42
2
Pass
 
%%
E = 'harrypotter';
S = 'voldemort';
y_correct = 42;
assert(isequal(OV(E,S),y_correct))
ans =
    39    33     0    42
3
Pass
 
%%
E = 'everyone';
S = 'cookies';
y_correct = 39;
assert(isequal(OV(E,S),y_correct))
ans =
    39    33     0    42