X118: linearIn

Given two arrays of ints sorted in increasing order, called outer and inner, return true if all of the numbers in inner also appear in outer. The best solution makes only a single "linear" pass of both arrays, taking advantage of the fact that both arrays are already in sorted order.

Your Answer:

Reset

Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.