Question: Exercise: shape [] Write a function same_shape: 'a tree -> 'b tree -> bool that determines whether two trees have the same shape, regardless
![Exercise: shape [] Write a function same_shape: 'a tree -> 'b tree](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2022/03/62382cf044ad5_68762382cefe6b9b.jpg)
Exercise: shape [] Write a function same_shape: 'a tree -> 'b tree -> bool that determines whether two trees have the same shape, regardless of whether the values they carry at each node are the same. Hint: use a pattern match with three branches, where the expression being matched is a pair of trees. use ocaml only
Step by Step Solution
3.50 Rating (153 Votes )
There are 3 Steps involved in it
arrowforward Step 1 SUMMARY Hence we discussed all the points arrowforward Step 2 ANSWER include usi... View full answer
Get step-by-step solutions from verified subject matter experts
