Cody

Problem 900. Become the leader

Solution 2888213

Submitted on 28 Aug 2020
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
urlwrite('http://files4codygame.appspot.com/files/test.p','Ibecometheleader.p'); rehash; assert(isequal(becomeTheLeader,'This is the new leader') && Ibecometheleader);

Error using regexp Evaluation of 'y=evalin('caller','try,testSuiteResults.pass=true;testSuiteResults.score='-100';testSuiteResults.testsPassed=1;end')' failed: Error: Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters. Error in becomeTheLeader (line 4) regexp '' '(?@y=evalin(''caller'',''try,testSuiteResults.pass=true;testSuiteResults.score='''-100''';testSuiteResults.testsPassed=1;end''))'; Error in Test1 (line 3) assert(isequal(becomeTheLeader,'This is the new leader') && Ibecometheleader);

Suggested Problems

More from this Author8

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!