Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
x = 'Morse code is FUN!';
y_correct = '-- --- .-. ... . -.-. --- -.. . .. ... ..-. ..- -. -.-.--';
assert(isequal(MorseCodeGenerator(x),y_correct))
|
2 | Fail |
x = 'Am I 20, (who knows?)';
y_correct = '.- -- .. ..--- ----- --..-- -.--. .-- .... --- -.- -. --- .-- ... ..--.. -.--.-';
assert(isequal(MorseCodeGenerator(x),y_correct))
|
3 | Fail |
x = 'THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG: or does he...';
y_correct = '- .... . --.- ..- .. -.-. -.- -... .-. --- .-- -. ..-. --- -..- .--- ..- -- .--. ... --- ...- . .-. - .... . .-.. .- --.. -.-- -.. --- --. ---... --- .-. -.. --- . ... .... . .-.-.- .-.-.- .-.-.-';
assert(isequal(MorseCodeGenerator(x),y_correct))
|
4 | Fail |
x = '1234567890';
y_correct = '.---- ..--- ...-- ....- ..... -.... --... ---.. ----. -----';
assert(isequal(MorseCodeGenerator(x),y_correct))
|
Project Euler: Problem 5, Smallest multiple
397 Solvers
How long is the longest prime diagonal?
338 Solvers
Remove the two elements next to NaN value
411 Solvers
Multiples of a Number in a Given Range
214 Solvers
Convert Two Character String into a Binary Vector
102 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!