摘要:
You have been given three arrays A,B and C.You have to find out all the elements in A and B such that the A[i]-B[j]=C[k]A:1. Put all the elements of array C in a HashTable - O(n) time and O(n) space2. Calculate all the possible differences of A[i] and B[j]. and check whether diff is present in HT or 阅读全文