Coding Challenge · INTERMEDIATE
A hiker is planning a journey along a mountain trail with several rest stops, each at a certain elevation. The hiker can only move forward and must rest at each stop, but can choose to skip up to k rest stops during the journey. The objective is to minimize the total elevation gain, defined as the sum of all positive e…