4 ms·
Don't hire me, this version cons a lot )): (defun palindrome(str) (string= str (coerce (reverse (coerce str 'list)) 'string))
by newbye3 4y ago
Don't hire me, this version cons a lot )):
(defun palindrome(str)
(string= str (coerce (reverse (coerce str 'list)) 'string))
- iLoveOncall 4y agoI would ask you to implement reverse and coerce yourself.