I need help with a problem ...

Revision en2, by GokuSSJ7, 2019-10-14 11:48:42

for a sequence of positive integers a1, a2, a3, ..., an and a number d. You can select a consecutive sub-segment in the sequence a1, a2, a3, ..., an and increase that sub-segment to x (-d <= x <= d).What is the longest increase in a substring length you have? (With n <= 100000 and d <= 1000000000 and a[i]<=1000000000 with from 1 to n) (Since this is my school essay, I don't have any links, so sorry).

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English GokuSSJ7 2019-10-14 11:48:42 34
en1 English GokuSSJ7 2019-10-14 11:05:35 417 Initial revision (published)