Difference between the depth of the two given nodes
diff = level [ b ] - level [ a ] ; NEW_LINE while ( diff > 0 ) : NEW_LINE INDENT log = int ( math . log2 ( diff ) ) ; NEW_LINE ans = max ( ans , mx [ log ] [ b ] ) ; NEW_LINE DEDENT