Commits

Luke Plant  committed 4012e7d

Fixed some comments.

  • Participants
  • Parent commits 585e805

Comments (0)

Files changed (1)

File phone2word.hs

 
 Note, in finding all routes across the river, we must never use more than one
 'digit log' consecutively.  This restriction is needed because the algorithm for
-adding 'digit logs' can mean we get digit logs that can be laid end to end.
+adding 'digit logs' can mean we get digit logs that can be laid end to end, and
+that case should always be ignored, since it is the same as having one larger
+digit log.
 
 -}
 
      findRoutes' :: WordMap -> Int -> Int -> [Combo]
      findRoutes' words start end =
          do
-           -- find words that start as position 'start':
+           -- find words that start at position 'start':
            ((p,len),ws) <- filter (\((p,_),_) -> p == start) words
            w <- ws
            if p + len == end