I have coded GSS1 using segment tree but it is giving WA on test case 9. Please help
Problem My Code
EDIT: The problem is solved. Just remove the "else" from "else if" in constructST function and get it AC :) I am keeping this code here for reference to somebody who is in need of it.
Auto comment: topic has been updated by Ghost0fSparta (previous revision, new revision, compare).