CPP code to find LCA of given two nodes in a tree
#include <bits/stdc++.h> NEW_LINE #define sz ( x )  x.size() NEW_LINE #define pb  push_back NEW_LINE #define left  2 * i + 1 NEW_LINE #define right  2 * i + 2 NEW_LINE using namespace std ; const int maxn = 100005 ;