You are given a strictly increasing integer array rungs representing the heights of rungs on a ladder, and an integer dist. You start at height dist.
You may add rungs at any positive integer heights.
Return the minimum number of rungs you must add to reach the highest rung.
Constraints:
rungs.length
rungs[i]
dist
rungs is strictly increasing.
You are given a strictly increasing integer array rungs representing the heights of rungs on a ladder, and an integer dist. You start at height dist.
You may add rungs at any positive integer heights.
Return the minimum number of rungs you must add to reach the highest rung.
Constraints:
rungs.length
rungs[i]
dist
rungs is strictly increasing.