This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
assert(isequal(english2piglatin('question'),'estion-quay'))
ans =
estion-quay
|
2 | Pass |
%%
assert(isequal(english2piglatin('another'),'another-ay'))
ans =
another-ay
|
3 | Pass |
%%
assert(isequal(english2piglatin('nix'),'ix-nay'))
ans =
ix-nay
|
4 | Pass |
%%
assert(isequal(english2piglatin('another one bites the dust'),'another-ay one-ay ites-bay e-thay ust-day'))
ans =
another-ay one-ay ites-bay e-thay ust-day
|
5 | Pass |
%%
assert(isequal(english2piglatin('how much wood would a woodchuck chuck if a woodchuck could chuck wood'),'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'))
ans =
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
|
6 | Pass |
%%
assert(isequal(english2piglatin('peter piper picked a peck of pickle peppers'),'eter-pay iper-pay icked-pay a-ay eck-pay of-ay ickle-pay eppers-pay'))
ans =
eter-pay iper-pay icked-pay a-ay eck-pay of-ay ickle-pay eppers-pay
|
7 | Pass |
%%
assert(isequal(english2piglatin('four score'),'our-fay ore-scay'))
ans =
our-fay ore-scay
|
17159 Solvers
14995 Solvers
239 Solvers
Getting the indices from a vector
1449 Solvers
136 Solvers