June 2, 2023
9:34 p.m.
On Sat, 3 Jun 2023 at 07:28, David Mertz, Ph.D. <david.mertz@gmail.com> wrote:
Sure. That's fine. With a sufficiently long strings my code is faster, but for "typical" strings yours will be.
Really? How? Your code has to build a set of every character in the string; mine builds a set of every category in the string. Set intersection won't be slower for a smaller set. ChrisA