Segment Trees - Introduction
#include <bits/stdc++.h>
using namespace std;
int n;
vector<int> a;
vector<int> segTree;
// build function to build the segment tree
void build(int i, int j, int k) {
// i -> starting index of a part of the array
// j -> ending index of a...
competitive-programming.hashnode.dev2 min read