---
title: "Discussion on \"Efficiently Implement a Basic Segment Tree\" | Hashnode"
description: "Discussion on \"Efficiently Implement a Basic Segment Tree\". A segment tree is a binary tree structure that is used to store information about intervals, or segments. It is one of the most powerful tree data structures for solving problems related to interval queries and modifications. For example, querying th..."
url: "https://hashnode.com/posts/efficiently-implement-a-basic-segment-tree/6408a8a78be94ee7697900b1"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Efficiently Implement a Basic Segment Tree](https://wengao.hashnode.dev/efficiently-implement-a-basic-segment-tree?utm_source=hashnode&utm_medium=feed)

A segment tree is a binary tree structure that is used to store information about intervals, or segments. It is one of the most powerful tree data structures for solving problems related to interval queries and modifications. For example, querying th...

Mar 8, 2023 · 7 min read · wengao.hashnode.dev  
Updated Mar 11, 2023  
Read the article

-   [#data-structures](https://hashnode.com/tag/data-structures)
-   [#algorithms](https://hashnode.com/tag/algorithms)
-   [#programming-ciovqvfcb008mb253jrczo9ye](https://hashnode.com/tag/programming-ciovqvfcb008mb253jrczo9ye)

## Written by

[Wengao Ye](https://hashnode.com/@elleryqueenhomels)

@elleryqueenhomels

  
[View profile](https://hashnode.com/@elleryqueenhomels)

Software Engineer

## Responses 4

Markdown supported · ⌘↵ to post

[noob boot](https://hashnode.com/@Anondo11)

[Jul 17, 2023](https://hashnode.com/posts/efficiently-implement-a-basic-segment-tree/6408a8a78be94ee7697900b1/comment/64b516d10470cd817f0e2a08)

👑👑

[Md.sohel Rana Rana](https://hashnode.com/@Sohel4466)

[Jul 17, 2023](https://hashnode.com/posts/efficiently-implement-a-basic-segment-tree/6408a8a78be94ee7697900b1/comment/64b4ebf9d139b7a4d985216d)

Excellent 👌

[Md.sohel Rana Rana](https://hashnode.com/@Sohel4466)

[Jul 17, 2023](https://hashnode.com/posts/efficiently-implement-a-basic-segment-tree/6408a8a78be94ee7697900b1/comment/64b4eb830470cd817f0e2272)

Very nice

[Md Habibur Rahman](https://hashnode.com/@habib321)

[Jul 17, 2023](https://hashnode.com/posts/efficiently-implement-a-basic-segment-tree/6408a8a78be94ee7697900b1/comment/64b4e2ea0470cd817f0e20d3)

Nice
