+1 vote
in Data Structures & Algorithms I by (110k points)
: It is not possible to reach the end of an array if starting element of the array is 0.

(a) true

(b) false

My question is taken from Number of Jumps to Reach End-array Operation topic in division Arrays Types of Data Structures & Algorithms I

This question was posed to me by my college professor while I was bunking the class.

1 Answer

+1 vote
by (408k points)
selected by
 
Best answer
Right option is (a) true

The best explanation: If the first element of an array is 0 then it is not possible to reach the end. However, if 0 is present at other positions then we may/may not be able to reach the end.

Related questions

Welcome to TalkJarvis QnA, a question-answer community website for the people by the people. On TalkJarvis QnA you can ask your doubts, curiosity, questions and whatever going in your mind either related to studies or others. Experts and people from different fields will answer.

Categories

...