Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Solution 252542

Submitted on 1 Jun 2013 by Yaroslav

Correct

32Size
Leading solution size is 26.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test
Code Input and Output
1
Pass
 
%%
x = ['TIPE'
     'YECV'
     'LSRA'
     'WOTU'];
y = 'RACIEST';
assert(isequal(boggle_checker(x,y),true))

                    
2
Pass
 
%%
x = ['TIPE'
     'YECV'
     'LSRA'
     'WOTU'];
y = 'RACIESTS';
assert(isequal(boggle_checker(x,y),false))

                    
3
Pass
 
%%
x = ['TIPE'
     'YECV'
     'LSRA'
     'WOTU'];
y = 'RACIESTW';
assert(isequal(boggle_checker(x,y),false))

                    
4
Pass
 
%%
x = ['TIPE'
     'YECV'
     'LSRA'
     'WOTU'];
y = 'AUTOLYTIC';
assert(isequal(boggle_checker(x,y),true))

                    
5
Pass
 
%%
x = ['TIPE'
     'YECV'
     'LSRA'
     'WOTU'];
y = 'RESTAR';
assert(isequal(boggle_checker(x,y),false))

                    
6
Pass
 
%%
x = ['OCEW'
     'LRIR'
     'GYSI'
     'KREM'];
y = 'SIRI';
assert(isequal(boggle_checker(x,y),true))

                    
7
Pass
 
%%
x = ['OCEW'
     'LRIR'
     'GYSI'
     'KREM'];
y = 'SIRIM';
assert(isequal(boggle_checker(x,y),true))