DEV Community

loading...

Discussion on: Daily Challenge #177 - Supersize Me

Collapse
brandelune profile image
Jean-Christophe Helary

common lisp

(defun superSize (n) (car (list (parse-integer (sort (write-to-string n) #'char>)))))

parse-integer outputs 2 values but we only need the first, hence the hack with (car (list...)