[Solved] What will be the minimum number of jumps required to reach the end of the array arr[] = {1,3,6,3,6,8,5}?

What will be the minimum number of jumps required to reach the end of the array arr[] = {1,3,6,3,6,8,5}?

a) 1
b) 2
c) 3
d) not possible to reach the end

Answer: c
Explanation: Each element of the array represents the maximum number of steps that can be taken forward from that element. If the first element is 0 then it is not possible to reach the end.

Comments