Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
n = 35007;
txt = 'LOOSE';
assert(isequal(calc_spell_word(n),txt))
out =
'ESOOL'
a =
'LOOSE'
|
2 | Pass |
n = 77345;
txt = 'ShELL';
assert(isequal(calc_spell_word(n),txt))
out =
'LLEhS'
a =
'ShELL'
|
3 | Pass |
n = 36138;
txt = 'BEIgE';
assert(isequal(calc_spell_word(n),txt))
out =
'EgIEB'
a =
'BEIgE'
|
4 | Pass |
n = 378806;
txt = 'gOBBLE';
assert(isequal(calc_spell_word(n),txt))
out =
'ELBBOg'
a =
'gOBBLE'
|
5 | Pass |
n = 376006;
txt = 'gOOgLE';
assert(isequal(calc_spell_word(n),txt))
out =
'ELgOOg'
a =
'gOOgLE'
|
6 | Pass |
n = 57738461375;
txt = 'SLEIghBELLS';
assert(isequal(calc_spell_word(n),txt))
out =
'SLLEBhgIELS'
a =
'SLEIghBELLS'
|
7 | Pass |
n = 0.7734;
txt = 'hELLO';
assert(isequal(calc_spell_word(n),txt))
out =
'OLLEh'
a =
'hELLO'
|
8 | Pass |
n = 53045;
txt = 'ShOES';
assert(isequal(calc_spell_word(n),txt))
out =
'SEOhS'
a =
'ShOES'
|
9 | Pass |
n = 771;
txt = 'ILL';
assert(isequal(calc_spell_word(n),txt))
out =
'LLI'
a =
'ILL'
|
10 | Pass |
n = 345;
txt = 'ShE';
assert(isequal(calc_spell_word(n),txt))
out =
'EhS'
a =
'ShE'
|
11 | Pass |
n = 7735;
txt = 'SELL';
assert(isequal(calc_spell_word(n),txt))
out =
'LLES'
a =
'SELL'
|
12 | Pass |
ind = randi(4);
n_arr = [36138 707 7714 57738];
n = n_arr(ind);
txt_arr = {'BEIgE','LOL','hILL','BELLS'};
txt = txt_arr{ind};
assert(isequal(calc_spell_word(n),txt))
out =
'LLIh'
a =
'hILL'
|
1309 Solvers
1882 Solvers
Solve the set of simultaneous linear equations
273 Solvers
284 Solvers
484 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!