Javascript code to find the maximum path length considering any node as root
let MAX_NODES = 100 ; let In = new Array ( MAX_NODES ) ; let out = new Array ( MAX_NODES ) ; for ( let i = 0 ; i < MAX_NODES ; i ++ ) { In [ i ] = 0 ; out [ i ] = 0 ; }