You are tasked with planning the construction of
The heights of the buildings must satisfy the following conditions:
The height of building
The absolute difference in height between any two adjacent buildings cannot exceed
There is a restrictions, where each restrictions[i]
Return the maximum possible height among all the buildings that can be constructed.
Constraints:
n
restrictions.length
n
All
You are tasked with planning the construction of
The heights of the buildings must satisfy the following conditions:
The height of building
The absolute difference in height between any two adjacent buildings cannot exceed
There is a restrictions, where each restrictions[i]
Return the maximum possible height among all the buildings that can be constructed.
Constraints:
n
restrictions.length
n
All