The spec says if "there is no word in the dictionary that can be used in 
the partial encoding starting at digit k+1" then a digit can be used. Some 
people interpreted that as "no word from the dictionary can be used in a 
solution". Others interpreted that as "no word from the dictionary can be 
used for a single word addition" :)

Are there other challenges like this study?

On Sunday, September 23, 2012 9:40:35 PM UTC+2, HamsterofDeath wrote:
>
> 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 clo...@googlegroups.com<javascript:> 
> > Note that posts from new members are moderated - please be patient with 
> > your first post. 
> > To unsubscribe from this group, send email to 
> > clojure+u...@googlegroups.com <javascript:> 
> > 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

Reply via email to