Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Never fail a technical interview again. Parent comment
Counter(str1) - Counter(str2) | Counter(str2) - Counter(str1)
That ought to work. I'd hope Python's caching doesn't recompute the Counter for long strings.
There are no comments on this comment yet.
Counter(str1) - Counter(str2) | Counter(str2) - Counter(str1)
That ought to work. I'd hope Python's caching doesn't recompute the Counter for long strings.