Problem · Array
Make Towers Strictly Increasing or Decreasing
Learn this problemProblem statement
Feel free to check out the source images below to view the original statement. Thank you for understanding 🧡o🧡
Function
makeTowa(towers: int[]) → intExamples
Example 1
towers = [1, 4, 3, 2]return = 4Explanation is in source image :)
Example 2
towers = [5, 7, 9, 4, 11]return = 9Explanation is in source image :)