i did not need the hint to develop a correct solution. the hint just clarifies what could have been misunderstood.
Am 23.09.2012 21:03, schrieb Mark Engelberg: > I agree that Odersky's version doesn't match the spec. Hint or no hint, > it doesn't look like he even attempts to address the issue of inserting > single digits into the encoding. He's solving a different, somewhat > simpler problem. > > I don't agree that the hint changes the problem statement. The original > spec is relatively clear about the conditions under which you are > allowed to insert a plain digit in the encoding. I can see how someone > might interpret it differently, but it stresses that it's meant to be > treated as a local decision -- you can only insert a digit if no word > from the dictionary is a leftmost substring of the remaining letters. > The hint simply clarifies what is already in the spec. > > Has anyone tried running Nolen's core.logic version yet to see if it > works? At first glance, it looks like it only finds combinations of > exactly two words that combine to encode the number, which isn't even > the version that Odersky did. > > --Mark > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en