Hi everyone!
I have just participated in an IT contest in my city recently. And there was a segment tree problem that for now, I cant think of the way to use the segment tree properly. Heres the problem:
- Given an array a contains only two numbers: 1 and -1, all the elements index from 1 to n



