1676. Skip Stones
There are n stones between the starting point and the end point. The distance between the starting point and the ith (i starts from 0) stone is d[i] . And the distance between the starting point and end point is target . From the starting point, we can only jump to the adjacent stone until the end point. Now you can remove at most m stones. Return the maximum value of the shortest jump distance in your jumping from start point to end point. 0 \leq m \leq n \leq 50,000 0 ≤ m ≤ n ≤ 5 0 , 0 0 0 1 \leq target \leq 1,000,000,000 1 ≤ t a r g e t ≤ 1 , 0 0 0 , 0 0 0 , 0 0 0 These stones are given in order from small to large distances from the starting point, and no two stones will appear in the same place. Have you met this question in a real interview? Yes Problem Correction Example Example 1: Input: n = 5, m = 2, target = 25, d = [2,11,14,17,21] Output: 4 Explanation: Remove th...