Add Minimum Number of Rungs
Add the fewest rungs to a ladder so that every gap between consecutive rungs is at most a given distance. The visual shows a vertical ladder with each too-large gap split by newly added rungs.
Add the fewest rungs to a ladder so that every gap between consecutive rungs is at most a given distance. The visual shows a vertical ladder with each too-large gap split by newly added rungs.