I have coded GSS1(https://www.spoj.com/problems/GSS1/) using segment tree but it is giving WA on test case 9. Please help. My code
EDIT: The problem is solved, remove “else” from “else if” in constructST function and get it AC.