• + 1 comment

    why can' t we simply solve it by calculating all sub set and check palindromic behavior for every one. why we need to use segment tree.