Problem 900. Become the leader
The goal of this problem is the same as the goal of the rest of them: become the leader.
Actually, you can only solve this problem if you become the leader or your solution's size equals that proposed by the leader. Furthermore, your solution should return the string This is the new leader.
Solution Stats
Problem Comments
-
1 Comment
How can a webpage be used in an assert?
urlwrite('http://www.dropbox.com/s/hpbc4sbc9ihsz0h/test.p?dl=1','test.p');
assert(isequal(becomeTheLeader,'This is the new leader') && test)
Where test.p is:
Found
Found
The resource was found at https://www.dropbox.com/s/hpbc4sbc9ihsz0h/test.p?dl=1;
you should be redirected automatically.
Error messages seen are:
Error: invalid pfile
Solution Comments
Show commentsProblem Recent Solvers33
Suggested Problems
-
8983 Solvers
-
Return the largest number that is adjacent to a zero
5415 Solvers
-
Back to basics 3 - Temp Directory
373 Solvers
-
Convert from Base 10 to base 5
264 Solvers
-
We love vectorized solutions. Problem 1 : remove the row average.
836 Solvers
More from this Author8
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!