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 piece you canincrease 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).↵
(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).↵