Rating changes for last rounds are temporarily rolled back. They will be returned soon. ×

bukunu's blog

By bukunu, history, 6 years ago, In English

Asked in a Finance Company Interview :

Given three unsorted arrays A,B and C, the task is to find three elements a,b,c from the three arrays such that a+b=c.

Can it be done in O(nlogn)?

Suppose the arrays are given as sorted, then can it be done in linear time?

Full text and comments »

  • Vote: I like it
  • +11
  • Vote: I do not like it