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...
wrong answer for test suite 1
the 1st test suite seems not right.
the sol of first test isn't correct
How to find the position of an element in a vector without using the find function
vectorization in N
Are all the three given point in the same line?
find the maximum element of the matrix
Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock.
Spot the outlier
Do the line-segments intersect?
Eliminate Polysyllabics: Long live short words!
How Many Months Until It's Today Again?
Stuff the Board
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office