Cody

Problem 1888. Get ranking of a combination

Solution 2830506

Submitted on 13 Aug 2020
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
vec = [1 2 3]; y_correct = 1; assert(isequal(get3HCRank(vec),y_correct))

Error: You may not use the command(s) assert in your code

2   Fail
vec = [1 2 4]; y_correct = 2; assert(isequal(get3HCRank(vec),y_correct))

Error: You may not use the command(s) assert in your code

3   Fail
vec = [3 5 8]; y_correct = 133; assert(isequal(get3HCRank(vec),y_correct))

Error: You may not use the command(s) assert in your code

4   Fail
vec = [5 9 11]; y_correct = 222; assert(isequal(get3HCRank(vec),y_correct))

Error: You may not use the command(s) assert in your code