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

iamgood1's blog

By iamgood1, history, 5 years ago, In English

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?

  • Vote: I like it
  • -28
  • Vote: I do not like it

»
5 years ago, # |
  Vote: I like it -7 Vote: I do not like it