Cody

# Problem 1674. How many jokers?

Solution 1976761

Submitted on 15 Oct 2019
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
suspects = [431 543 211 911 436]; code = 211; jokers = 1; assert(isequal(mytest(suspects,code),jokers))

Error in solution: Line: 3 Column: 25 Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.

2   Fail
suspects = [431 543 211 911 436]; code = 217; jokers = 0; assert(isequal(mytest(suspects,code),jokers))

Error in solution: Line: 3 Column: 25 Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.

3   Fail
suspects = 100:200; code = 160; jokers = 1; assert(isequal(mytest(suspects,code),jokers))

Error in solution: Line: 3 Column: 25 Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.

4   Fail
suspects = [100 200 300 350 200]; code = 200; jokers = 2; assert(isequal(mytest(suspects,code),jokers))

Error in solution: Line: 3 Column: 25 Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.