http://www.geeksforgeeks.org/populate-inorder-successor-for-all-nodes/ #include <iostream> #include <vector> #include <algorithm> #include <queue> #include <stack> #include <string> #include <fstream> using namesp…
http://www.geeksforgeeks.org/construct-tree-from-given-inorder-and-preorder-traversal/ #include <iostream> #include <vector> #include <algorithm> #include <queue> #include <stack> #include <string> #include <fstream&…
http://www.geeksforgeeks.org/inorder-tree-traversal-without-recursion-and-without-stack/ #include <iostream> #include <vector> #include <algorithm> #include <queue> #include <stack> #include <string> #include <fstrea…
http://www.geeksforgeeks.org/inorder-tree-traversal-without-recursion/ #include <iostream> #include <vector> #include <algorithm> #include <queue> #include <stack> using namespace std; struct node { int data; struct node *lef…
http://www.geeksforgeeks.org/lowest-common-ancestor-binary-tree-set-1/ #include <iostream> #include <vector> #include <algorithm> #include <queue> #include <stack> #include <string> #include <fstream> #include <…
http://www.geeksforgeeks.org/print-ancestors-of-a-given-binary-tree-node-without-recursion/ #include <iostream> #include <vector> #include <algorithm> #include <queue> #include <stack> #include <string> #include <fst…
http://www.geeksforgeeks.org/in-place-convert-a-given-binary-tree-to-doubly-linked-list/ #include <iostream> #include <vector> #include <algorithm> #include <queue> #include <stack> #include <string> #include <fstrea…
http://www.geeksforgeeks.org/iterative-postorder-traversal-using-stack/ #include <iostream> #include <vector> #include <algorithm> #include <queue> #include <stack> #include <string> #include <fstream> #include &l…
http://www.geeksforgeeks.org/largest-independent-set-problem/ #include <iostream> #include <vector> #include <algorithm> #include <queue> #include <stack> #include <string> #include <fstream> #include <map>…
http://www.geeksforgeeks.org/morris-traversal-for-preorder/ #include <iostream> #include <vector> #include <algorithm> #include <queue> #include <stack> #include <string> #include <fstream> #include <map> us…