Jump to content

Talk:ABC problem: Difference between revisions

Line 132:
<code>
(defun word-possible-p (word alphabet)
(labels ((%first-or-secondusablep (b)
(find (char-upcase (char word 0)) b)))
(or (zerop (length word))
(iter
(for candidate :in (remove-if-not #'%first-or-secondusablep alphabet))
(when (word-possible-p
(subseq word 1) (remove candidate alphabet :count 1))
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.