dario-dsa's blog

By dario-dsa, 11 years ago, In English

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?

  • Vote: I like it
  • +3
  • Vote: I do not like it

| Write comment?
»
11 years ago, # |
  Vote: I like it 0 Vote: I do not like it

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

Hope it Helps.