Cody

Solution 1037924

Submitted on 30 Oct 2016 by Andriy Kavetsky
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

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

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

s = l y = ! s = ?