1.

For any array, given that at most one element is non-zero, it is ALWAYS possible to reach the end of the array using minimum jumps.(a) True(b) FalseThe question was asked in semester exam.This question is from Minimum Number of Jumps topic in section Dynamic Programming of Data Structures & Algorithms II

Answer»

Correct ANSWER is (B) False

Easy explanation - CONSIDER the array {1,0,2,3,4}.

In this case, only ONE element is 0 but it is not possible to REACH the end of the array.



Discussion

No Comment Found

Related InterviewSolutions