Cody

Solution 481729

Submitted on 2 Aug 2014 by rifat
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   Pass
%% E = 'humankind'; S = 'dinosaurs'; y_correct = 33; assert(isequal(OV(E,S),y_correct))

s = 0 1 0 0 2 ans = 33

2   Pass
%% E = 'harrypotter'; S = 'voldemort'; y_correct = 42; assert(isequal(OV(E,S),y_correct))

s = 1 3 1 2 0 ans = 42

3   Pass
%% E = 'everyone'; S = 'cookies'; y_correct = 39; assert(isequal(OV(E,S),y_correct))

s = 0 3 1 4 1 ans = 39