please answer this question as fast as possible I will make sure to give thumbs up
Each of the following examples gives a design in a language of a data structure for binary trees and a function for counting the nodes in a binary tree: - Julia mutable struct BNode data::Int left::UnionfNothing, BNode right::Unionf(Nothing, BNode } end BTree = Unionf(Nothing, BNode } function count(r::BTree) if r= nothing return 0 else end - Haskell data BTree a =Nil I Branch a (BTree a) (BTree a) count Nil=0 count (Branch - left right) = (count left) + (count right) +1 Picat count (nil)=0 count ({, Left, Right })=count (Lef t)+count( Right )+1 Write each of the following functions on binary trees in one of these languages. 1. min_max (tree): This function returns a pair (min, max), where min is the minimum value, and max is the maximum value in tree. Note that the tree may not be a binary search tree. 2. inc1 (tree): This function returns a copy of tree, in which each node value is incre mented by 1. Each of the following examples gives a design in a language of a data structure for binary trees and a function for counting the nodes in a binary tree: - Julia mutable struct BNode data::Int left::UnionfNothing, BNode right::Unionf(Nothing, BNode } end BTree = Unionf(Nothing, BNode } function count(r::BTree) if r= nothing return 0 else end - Haskell data BTree a =Nil I Branch a (BTree a) (BTree a) count Nil=0 count (Branch - left right) = (count left) + (count right) +1 Picat count (nil)=0 count ({, Left, Right })=count (Lef t)+count( Right )+1 Write each of the following functions on binary trees in one of these languages. 1. min_max (tree): This function returns a pair (min, max), where min is the minimum value, and max is the maximum value in tree. Note that the tree may not be a binary search tree. 2. inc1 (tree): This function returns a copy of tree, in which each node value is incre mented by 1