Cody

Solution 1698209

Submitted on 21 Dec 2018 by James
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
board = [ 'xcupa'; 'dyrng'; 'osbaq'; 'exbid'; 'wgamv'; ]; words = {'aim'; 'bid'; 'cup'; 'doe'}; loc_ans = [ 3 4 5; 4 3 3; 1 2 3; 2 1 5; ]; assert(isequal(WordSearch(board,words),loc_ans)) % board = [ 'okeanpbirf'; 'qicwnafehu'; 'wniazcgame'; 'egaxjelbiv'; 'bnomelvmcr'; ]; words = {'fair'; 'game'; 'hall'; 'ice'; 'jack'; 'king'; 'lemon'}; loc_ans = [ 2 7 4; 3 7 3; 2 9 6; 3 3 1; 4 5 8; 1 2 5; 5 6 7; ]; assert(isequal(WordSearch(board,words),loc_ans)) % board = [ 'werojea'; 'cafefls'; 'apufrbw'; 'hrleaan'; 'aoltgbb'; 'aoaevdr'; 'mdzoece'; ]; words = {'able'; 'bare'; 'cafe'; 'door'; 'edge'; 'full'}; loc_ans = [ 4 6 1; 5 7 8; 2 1 3; 7 2 1; 7 7 8; 2 3 5; ]; assert(isequal(WordSearch(board,words),loc_ans)) % %% board = [ 'anmjwfpnyo'; 'wasgijsaen'; 'akigyqaekl'; 'doorbellci'; 'loiapucfdx'; 'loepalirri'; 'alzhheagle'; 'mgxmsovnpr'; 'aiqtbovgee'; 'juyhctahnr'; ]; words = {'airplane'; 'board'; 'clasp'; 'doorbell'; 'eagle'; 'fiesty'; 'graph'; 'hatch'; 'igloo'; 'jigsaw'; 'key'; 'llama'}; loc_ans = [ 2 2 4; 9 5 2; 5 7 1; 4 1 3; 7 6 3; 5 8 6; 3 4 5; 10 8 7; 9 2 1; 2 6 7; 3 9 1; 5 1 5; ]; assert(isequal(WordSearch(board,words),loc_ans))

More from this Author161