Driver code
if __name__ == " _ _ main _ _ " : NEW_LINE INDENT V = 3 NEW_LINE val = [ 2 , 4 , 3 ] NEW_LINE u = [ 0 , 0 , 1 ] NEW_LINE v = [ 2 , 1 , 2 ] NEW_LINE n , k = len ( u ) , 2 NEW_LINE findKthNode ( u , v , n , val , V , k ) NEW_LINE DEDENT