Cody

Solution 322898

Submitted on 24 Sep 2013 by James
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
%% vec = [1 2 3]; y_correct = 1; assert(isequal(get3HCRank(vec),y_correct))
2   Pass
%% vec = [1 2 4]; y_correct = 2; assert(isequal(get3HCRank(vec),y_correct))
3   Pass
%% vec = [3 5 8]; y_correct = 133; assert(isequal(get3HCRank(vec),y_correct))
4   Pass
%% vec = [5 9 11]; y_correct = 222; assert(isequal(get3HCRank(vec),y_correct))