How to make segment tree?

The best way to make a segment tree is by using an array, how to make a segment tree of a matrix?
Further, I am not able to find the question discussed, maybe 404 error is related to the revamping of the website. If possible, provide a link to question too.

Thanks.

@shivambehl123
Hello shivam,
here is the problem link -> https://hack.codingblocks.com/app/contests/1338/1354/problem

u can declare a structure which contain fours variables . and then build a segment tree of structure .
check reference code here-> https://ide.codingblocks.com/s/193275

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.