Computing LCA
compute_lca ( ) ; NEW_LINE queries = [ [ 3 , 5 ] , [ 2 , 3 ] , [ 2 , 4 ] ] NEW_LINE q = 3 ; NEW_LINE for i in range ( q ) : NEW_LINE INDENT max_edge = getMax ( queries [ i ] [ 0 ] , queries [ i ] [ 1 ] ) ; NEW_LINE print ( max_edge ) NEW_LINE DEDENT