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...
Solution CommentsShow comments
Problem Recent Solvers617
Find the alphabetic word product
Matrix which contains the values of an other matrix A at the given locations.
More from this Author50
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!