Segment Tree Basic Node Divide With Segment Tree Node Numbering (Segment Tree) // build (node, begin, end) build (1, 1, N) { L = 2xN, R = (2xN)...
1-Recursion-Basic #include "bits/stdc++.h" using namespace std; void solve(int n) { if(n==0) return; solve(n-1); cout<< n << "...
Binary Search Lower Bound #include "bits/stdc++.h" using namespace std; int main() { int n; cin>>n; int a[n]; for(int i=0; i<n; i++)...
Operations like AND, OR, XOR, NOT, left shift, and right shift.