Re:I/O is no longer the bottleneck
by Severian on Saturday November 26, 2022 @10:16AM
(#33753312)
This sounds like a very inefficient method. The Python stdlib module 'collections' includes a Counter class which can do this for you. Then all you need to do is copy the dict key/item pair to a new one that match your word list.
[ Parent
| on HN ]
There are no comments on this comment yet.