摘要: 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 阅读全文
posted @ 2012-05-21 22:49 百分百好牛 阅读(206) 评论(0) 推荐(0) 编辑