Computing LCA
compute_lca ( ) ; int [ , ] queries = { { 3 , 5 } , { 2 , 3 } , { 2 , 4 } } ; int q = 3 ; for ( int i = 0 ; i < q ; i ++ ) { int max_edge = getMax ( queries [ i , 0 ] , queries [ i , 1 ] ) ; Console . WriteLine ( max_edge ) ; } } }