What are the common elements between two arrays of size n and m? What is the time and memory complexity?
What is the quickest algorithm that can compute the product of every two variables in an array? Can it be done with time complexity less than O(n*n)?