---
title: "Discussion on \"Segment Tree\" | Hashnode"
description: "Discussion on \"Segment Tree\". Contents\n\nImplementation,Update And Lazy Segment Tree.\n\n\n#include <bits/stdc++.h>\n#include <iostream>\nusing namespace std;\n\nint lazy[1000]={0}; \n\nvoid UpdateRangeLazy(int tree[],int S,int E,int l,int r,int inc,int index){\n    if(lazy[index]!=0){\n    ..."
url: "https://hashnode.com/posts/segment-tree/5fde3e8ab78ac62dff80cd44"
---

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

Discussion

# [Segment Tree](https://karanwadhwa.hashnode.dev/segment-tree?utm_source=hashnode&utm_medium=feed)

Contents Implementation,Update And Lazy Segment Tree. #include <bits/stdc++.h> #include <iostream> using namespace std; int lazy\[1000\]={0}; void UpdateRangeLazy(int tree\[\],int S,int E,int l,int r,int inc,int index){ if(lazy\[index\]!=0){ ...

Dec 19, 2020 · 3 min read · karanwadhwa.hashnode.dev  
Read the article

## Written by

[Karan wadhwa](https://hashnode.com/@karan0309)

@karan0309

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
