Question: Write a haskell function called mergeTrees that takes as input two trees t 1 and t 2 and returns a tree t 3 containing all

Write a haskell function called mergeTrees that takes as input two trees t1 and t2 and returns a tree t3 containing all of the values in t1 and t2. example mergeTrees tree1 tree2
Node 5(Node 2 Leaf (Node 3 Leaf Leaf))(Node 7(Node 6 Leaf Leaf)(Node 8 Leaf Leaf))

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!