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 298659

Submitted on 8 Aug 2013 by Erin

Correct

95Size
Leading solution size is 18.
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))
L =
    33
2
Pass
 
%%
E = 'harrypotter';
S = 'voldemort';
y_correct = 42;
assert(isequal(OV(E,S),y_correct))
L =
    42
3
Pass
 
%%
E = 'everyone';
S = 'cookies';
y_correct = 39;
assert(isequal(OV(E,S),y_correct))
L =
    39