6 ms·
> 15 seen &= mask(haystack); Shouldn't it be seen ^= mask(haystack); And a personal change would be to define all as: int all = ~(~0 << ('z' - 'a' + 1));
by irahul 16y ago
> 15 seen &= mask(haystack);
Shouldn't it be
seen ^= mask(haystack);
And a personal change would be to define all as:
int all = ~(~0 << ('z' - 'a' + 1));
EDIT: For some reasons, asterisk doesn't appear before haystack.