Problem 722. Make a run-length companion vector
52.62% Correct | 47.38% Incorrect
Last Solution submitted on Mar 28, 2023
Show 2 older comments
Wenwu on 4 Jan 2015
The first test case seems to be invalid answer. Please check it
Ned Gulley on 6 Jan 2015
Hi Wenwu: Could you be more specific about what you think the problem is?
Carl Witthoft on 9 Dec 2015
See FileExchange's seqle . (disclaimer: I'm the author)
hubert andre on 13 Apr 2016
False exemple description
GEORGIOS BEKAS on 14 Feb 2018
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 Solvers615
More from this Author50
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!