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?
Here is my implementation, you can try to find a case yourself.
Hope it Helps.