Do use segment tree#5839

Do use segment tree (Discussion)