You are given two arrays: Arr1 and Arr2.Arr1 will be given sorted.For each element v in Arr2, you need to write a pseudo code that will print the number of elements in Arr1 that is less than or equal to v.For example: if I give you two arrays of size 5 and 4,Arr1 = 1 3 5 7 9Arr2 = 6 4 8The output should be: 3 2 4
Your searching method should not take more than O(log n) time.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here