output is wrong . i think i have build right segment tree.
ide: https://ide.codingblocks.com/s/189451
Min-query 1 [SEGMENT TREE]
Hey @Vishal123
Code is fine. Input is 1 indexed. You’re using 0 based indexing. So when you receive query, reduce index values by 1.
If your doubt is resolved please mark it as closed.