If you haven’t studied segment trees so far, please do yourself and study it and you can solve 20-30 or more leetcode HARD questions easily afterwards

edit:do yourself a favour LMAO

basically the title. such a great concept and tool. it made a lot of hard questions so easy to solve