I used a basic segment tree approach. There are two types of queries, point update and get Minimum. I am getting wrong answer in 2 out 3 test cases. Can you take a look why that is happening.
Question:
https://online.codingblocks.com/app/player/65729/content/154708/4859/code-challenge
My Solution: