Please subscribe to the official Codeforces channel in Telegram via the link https://t.me/codeforces_official. ×

comparison of 2 arrays (BETTER THAN THE 0(N^2)ALGORITHM)

Revision en1, by iamgood1, 2019-02-28 21:45:15

i have 2 arrays a[n],b[n].(think of them as coordinates) i sort a. now i want to know to which a[i], b[i] corresponds to NOW AFTER a IS SORTED! (BETTER THAN THE 0(N^2)ALGORITHM) is there any way?

Tags array, algorithm complexity, comparison

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English iamgood1 2019-02-28 21:45:15 254 Initial revision (published)