Question: fill the preorder by ocaml it shoud be return a list of all node of tree 4 5 6 type 'a gt Node of 'a*('a

fill the preorder by ocaml it shoud be return a list of all node of tree
4 5 6 type 'a gt Node of 'a*('a gt) list 7 let mk_Leaf (n:'a) : 'a gt - Node(n, []) 8 0 1 2 3 4 5 6 let t : int gt Node (33, [Node (12,[]); Node (77, [Node (37, [Node (14, [1]); Node (48, []); Node (103, [1]) ]) 7 8 9 let rec preorder (Node(d,ch)) : failwith "implement
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
