Arc Forumnew | comments | leaders | submitlogin
1 point by cchooper 5826 days ago | link | parent

This change reduces the running time by about a third:

  (def known-edits2 (word) 
    (accum add (each e (edits1 word) (map add (keep [*nwords* _] (edits1 word))))))


4 points by rkts 5825 days ago | link

Probably because it's incorrect. You should have (edits1 e) at the end there.

-----

2 points by cchooper 5824 days ago | link

True. The correct version is still faster though.

-----