To store the minimum and the maximum value in the path from LCA to b
int min2 = Int32 . MaxValue ; int max2 = Int32 . MinValue ; int i = 0 ; int j = 0 ; flag = FindPath ( root , a ) ; Path1 = path ; path = new ArrayList ( ) ; flag &= FindPath ( root , b ) ; Path2 = path ;