Driver code
if __name__ == ' _ _ main _ _ ' : NEW_LINE INDENT arr = [ 7 , 3 , 9 , 13 , 5 , 4 ] NEW_LINE n = len ( arr ) NEW_LINE tree = [ [ ] for i in range ( 4 * n + 1 ) ] NEW_LINE buildTree ( tree , arr , 1 , 0 , n - 1 ) NEW_LINE DEDENT