Counting the number of intervals | Segment Trees & Data Structures Practice


how to solve this question…and please explain in detail…