You are given two arrays, A and B, both sorted in non-decreasing order. The task is to find the intersection of these two arrays, which means returning all the elements that appear in both arrays. For ...
For each test case, print the intersection of arrays A and B. The result should be in the order of the elements that appear in the original arrays. If no intersection exists, print "No intersection".