Блог пользователя yash13203

Автор yash13203, история, 3 года назад, По-английски

is there any alternative that I can use in java for ordered_Set I have came across a problem https://codeforces.me/contest/1676/problem/H2 and most of the people out there have solved it using ordered_set but how can I implement it in java or is there any better way or alternative that I can use in place of ordered_set

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

»
3 года назад, # |
  Проголосовать: нравится +4 Проголосовать: не нравится
  1. Fenwick Tree + compression if necessary.
  2. This problem is well known and can be also solved with mergesort (but in general this is not applicable)