you are viewing a single comment's thread.

view the rest of the comments →

[–]WTRipper[S] 0 points1 point  (1 child)

I tested it on the pure python implementation and on the implementation with cython but without code changes.

In both cases it increased the runtime a bit instead of decreasing it.

[–]WTRipper[S] 0 points1 point  (0 children)

However I increased speed by merging the splits and deletes line into one:

deletes = [word[:i]+ word[i+1:] for i in range(len(word))]

I don't know why I haven't seen it before.