For a given array, there can be multiple ways to reach the end of the array using minimum number of jumps.

For a given array, there can be multiple ways to reach the end of the array using minimum number of jumps.
A. True
B. False
 
Answer: A
Explanation: Consider the array {1,2,3,4,5}. It is possible to reach the end in the following ways: {1 -> 2 -> 3 -> 5} or {1 -> 2 -> 4 -> 5}.
In both the cases the number of jumps is 3, which is minimum. Hence, it is possible to reach the end of the array in multiple ways using minimum number of jumps.
 

Tìm kiếm

Back
Top