hi all ,
I try to write a function sort3 that has type
sort3 :: Int -> Int -> Int -> (Int, Int, Int)
which sort 3 numbers in order such dat the smallest number is first and the greatest last. Is there any ways dat we can use lesss than 3 comparisons ??
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.