src/problems/hamm.lisp @ 0ea8cfbf45ce

Clean up
author Steve Losh <steve@stevelosh.com>
date Thu, 01 Nov 2018 21:59:30 -0400
parents 6088027147e1
children 11df545d1a41
(in-package :rosalind)

;; Given two strings s and t of equal length, the Hamming distance between s and
;; t, denoted dH(s,t), is the number of corresponding symbols that differ in
;; s and t.
;;
;; Given: Two DNA strings s and t of equal length (not exceeding 1 kbp).
;;
;; Return: The Hamming distance dH(s,t)

(defparameter *input-hamm* "GAGCCTACTAACGGGAT
CATCGTAATGACGGCCT")

(define-problem hamm (data stream)
    *input-hamm*
    "7"
  (hamming (read-line data) (read-line data) :test #'char=))

;; (problem-hamm *input-hamm*)
;; (solve hamm)