Arc Forumnew | comments | leaders | submitlogin
1 point by cchooper 5878 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 5877 days ago | link

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

-----

2 points by cchooper 5876 days ago | link

True. The correct version is still faster though.

-----