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

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

hello everyone,

Recently i came across this problem http://www.spoj.com/problems/DQUERY/en/. I solved the problem using Mo's algo and BST which is basically offline solution. Is there a way I can solve for each query online (and similarly for trees that involves queries on the subtree of its nodes)? If yes, please help me out.

Thanks in advance!!

Полный текст и комментарии »

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