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.


Practice a different Java exercise