Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1) in ocaml language Write a function that takes a, b, and c and return a string of the tree values in sorted order. You
1) in ocaml language Write a function that takes a, b, and c and
return a string of the tree values in sorted order.
You might want to write a function combine a b c
that returns a contact ":" b contact ":" contact c.
You will use string_of_int function to convert int
to string.
sort_as_str 5 4 6;; return "4:5:6"
sort_as_str 4 6 5;; return "4:5:6"
sort_as_str 4 5 6;; return "4:5"6"
Write a function that takes a, b, and c and
return a string of the tree values in sorted order.
You might want to write a function combine a b c
that returns a contact ":" b contact ":" contact c.
You will use string_of_int function to convert int
to string.
sort_as_str 5 4 6;; return "4:5:6"
sort_as_str 4 6 5;; return "4:5:6"
sort_as_str 4 5 6;; return "4:5"6"
return a string of the tree values in sorted order.
You might want to write a function combine a b c
that returns a contact ":" b contact ":" contact c.
You will use string_of_int function to convert int
to string.
sort_as_str 5 4 6;; return "4:5:6"
sort_as_str 4 6 5;; return "4:5:6"
sort_as_str 4 5 6;; return "4:5"6"
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started