Solution 483245

Submitted on 5 Aug 2014 by rifat
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
%% assert(isequal(piglatin2english('estion-quay'),'question'))

ans = question

2   Pass
%% assert(isequal(piglatin2english('another-ay'),'another'))

ans = another

3   Pass
%% assert(isequal(piglatin2english('ix-nay'),'nix'))

ans = nix

4   Pass
%% assert(isequal(piglatin2english('another-ay one-ay ites-bay e-thay ust-day'),'another one bites the dust'))

ans = another one bites the dust

5   Pass
%% assert(isequal(piglatin2english('ow-hay uch-may ood-way ould-way a-ay oodchuck-way uck-chay if-ay a-ay oodchuck-way ould-cay uck-chay ood-way'),'how much wood would a woodchuck chuck if a woodchuck could chuck wood'))

ans = how much wood would a woodchuck chuck if a woodchuck could chuck wood

6   Pass
%% assert(isequal(piglatin2english('eter-pay iper-pay icked-pay a-ay eck-pay of-ay ickle-pay eppers-pay'),'peter piper picked a peck of pickle peppers'))

ans = peter piper picked a peck of pickle peppers

7   Pass
%% assert(isequal(piglatin2english('our-fay ore-scay'),'four score'))

ans = four score