Cody

Solution 1101919

Submitted on 11 Jan 2017 by Jean-Marie Sainthillier
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 = ?

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

s = l ans = !

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

s = ? ans = ?