module MaxNum (maxNum) where import Data.List maxNum :: Int -> Int maxNum = read . reverse . sort . show
- module MaxNum (maxNum) where
- import Data.List
import Control.Monadimport Data.Char- maxNum :: Int -> Int
maxNum = read . join . map show . reverse . sort . map digitToInt . show- maxNum = read . reverse . sort . show