C ++ code to find the maximum path length considering any node as root
#include <bits/stdc++.h> NEW_LINE using namespace std ; const int MAX_NODES = 100 ; int in [ MAX_NODES ] ; int out [ MAX_NODES ] ;