Get best answers to any doubt/query/question related to programming , jobs, gate, internships and tech-companies. Feel free to ask a question and you will receive the best advice/suggestion related to anything you ask about software-engineering , development and programming problems .

1 like 0 dislike
1,703 views

Given two arrays arr1, arr2 of length n where 1 <=n <= 10^5.

Build a matrix mat of N*N where in the
mat[i][j] = arr1[i]^arr2[j].

Then return the summation of the matrix formed. I could able to solve it in O(N*N). Can this be solved in lesser time complexity ? Appericate any help here.

in Online Assessments by Expert (144,420 points)

Please log in or register to answer this question.

...