re: Daily Coding Puzzles - Nov 11th - Nov 16th VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Tuesday - Don't give me five! (7 KYU) In this kata you get the start number and the end number of a region and should return the count of all num...
 

Common Lisp

(defun dont-give-me-five (start end)
  (loop for x from start to end
     when (not (contains-5-p x)) collect x))

(defun contains-5-p (n)
  (position #\5 (write-to-string n)))
code of conduct - report abuse