MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / merge_two_binary_trees.py

File merge_two_binary_trees.py

data_structures/binary_tree/merge_two_binary_trees.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#!/usr/local/bin/python3
2"""
3Problem Description: Given two binary tree, return the merged tree.
4The rule for merging is that if two nodes overlap, then put the value sum of

Callers

nothing calls this directly

Calls 3

print_preorderFunction · 0.85
merge_two_binary_treesFunction · 0.85
NodeClass · 0.70

Tested by

no test coverage detected