Puzzle DC24


Linear search: look for the first location in an array that a particular values occurs after a starting index

[E-5] Write a function that searches for the first instance of a target value in an integer array that is at or beyond a particular index. Return the index of the element if it is there, or -1 if the element is not there.



Answer         Next Page         Previous Page Home