Two paths lead to the top of a hill. One is shorter and steeper and second one is longer but less steep. Which path has more gain of potential energy?
Same for both the paths
Gain or loss of potential energy doesn’t depend on the path or velocity with which the traveller moves. It depends on the total height or displacement of the body. Potential energy for both the paths will be the same as the height of the hill remains constant, irrespective of the path.