We're a place where coders share, stay up-to-date and grow their careers.
Haskell:
import Data.Char (digitToInt) import Data.List (sortBy) supersize :: Int -> Int supersize = read . sortBy (flip compare) . map digitToInt . show
Haskell: