Блог пользователя dario-dsa

Автор dario-dsa, 10 лет назад, По-английски

I am trying to solve BRCKTS on spoj.com. Evaluator always give me wrong answer. So I am wondering can anyone give me some advice or some tricky test case to try me code. I will be happy on support. Thanks. http://pastebin.com/07Ey03wS

Details: I am using standard segment tree for lgN querys but I think I made some mistake in postavi function which change values of binary tree when I change bracket. In function ini I on the begining create a binary tree with all important informations to do queries. In function moguce I check is there possibility that that string is valid. Can some help me?

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

»
10 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Here is my implementation, you can try to find a case yourself.

Hope it Helps.