Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%% Test 1
textIn1 = strcat('I am having a great time at summer camp. The camp', ...
' counselors are great and the activities are great. Monday', ...
' we went kayaking and Tuesday we learned archery. Archery was', ...
' great and I hit the bull''s eye which everyone was said was', ...
' really great. -Love Johnny');
textOut1 = strcat('I am having a great time at summer camp. The camp', ...
' counselors are great and the activities are awesome. Monday', ...
' we went kayaking and Tuesday we learned archery. Archery was', ...
' great and I hit the bull''s eye which everyone was said was', ...
' really awesome. -Love Johnny');
assert(strcmp(improve(textIn1),textOut1))
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function
to avoid a potential name conflict.]
[> In improve at 2
In verifyCode>evaluateCode at 238
In verifyCode at 43
In fevalJSON at 14]
ans =
1
|
2 | Pass |
%% Test 2
textIn2 = strcat('This sentence has great twice, which is great.');
textOut2 = strcat('This sentence has great twice, which is awesome.');
assert(strcmp(improve(textIn2),textOut2))
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function
to avoid a potential name conflict.]
[> In improve at 2
In verifyCode>evaluateCode at 238
In verifyCode at 43
In fevalJSON at 14]
ans =
1
|
3 | Pass |
%% Test 3
textIn3 = strcat('Summer camp this year has been so great and I have', ...
' made so many great friends. I will treasure the great memories', ...
' and great times forever. It was truly an awesome time.');
textOut3 = strcat('Summer camp this year has been so great and I have', ...
' made so many awesome friends. I will treasure the great memories', ...
' and awesome times forever. It was truly an awesome time.');
assert(strcmp(improve(textIn3),textOut3))
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function
to avoid a potential name conflict.]
[> In improve at 2
In verifyCode>evaluateCode at 238
In verifyCode at 43
In fevalJSON at 14]
ans =
1
|
Project Euler: Problem 9, Pythagorean numbers
282 Solvers
345 Solvers
Find nearest prime number less than input number
268 Solvers
462 Solvers
2455 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!