Minimum length of jumps to avoid given array of obstacles - GeeksforGeeks
We are given coordinates of obstacles on a straight line. We start jumping from point 0, we need to reach end avoiding all obstacles. Length of every jump has to be same (For example, if we jump from 0 to 4, then we must make next jump from 4 to 8). We need to find the minimum length of jump so that we can reach end and we avoid all obstacles.
Read full article from Minimum length of jumps to avoid given array of obstacles - GeeksforGeeks
No comments:
Post a Comment