You are viewing a single comment's thread. Return to all comments →
Sure it's short but I'm not sure if creating a set/map in this case will actually run fast. I suggest just operating on array of 26 bools/ints instead.
Agreed. I just saw the one-line-python version and got jealous :) For performance the 26 bools kills it.