Problem 722. Make a run-length companion vector
The first test case seems to be invalid answer. Please check it
Hi Wenwu: Could you be more specific about what you think the problem is?
See FileExchange's seqle . (disclaimer: I'm the author)
False exemple description
for i = 1:length(delta)
test = max(delta(1:i));
if test == delta(i) && delta(i)~= maxsofar
elseif test2 == delta(i) && delta(i)~= minsofar
this code despite its giving correct results it is rejected by the tests...
Problem Recent Solvers614
Project Euler: Problem 1, Multiples of 3 and 5
Are all the three given point in the same line?
More from this Author50
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!