https://hack.codingblocks.com/contests/c/547/311
https://ide.codingblocks.com/s/35764
i dont where i am going wrong ,can you please help me.
https://hack.codingblocks.com/contests/c/547/311
https://ide.codingblocks.com/s/35764
i dont where i am going wrong ,can you please help me.
Why are you doing
tree[index]=min(tree[2*index],tree[2*index+1])
in build?