Cody

Solution 1044640

Submitted on 5 Nov 2016 by Alfonso Nieto-Castanon
  • Size: 17
  • This is the leading solution.
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
x = ['Lets' 'play' 'a' 'game']; s='q' y_correct = '?'; assert(isequal(IsItTrue(x,s),y_correct))

s = 'q' ans = 63

2   Pass
x = ['Lets' 'play' 'a' 'game']; s='l' y_correct = '!'; assert(isequal(IsItTrue(x,s),y_correct))

s = 'l' ans = 33

3   Pass
x = ['Lets' 'play' 'a' 'game']; s='?' y_correct = '?'; assert(isequal(IsItTrue(x,s),y_correct))

s = '?' ans = 63