3 ms·
Seriously? You must enjoy your O(n^2).
by petdog 16y ago
Seriously? You must enjoy your O(n^2).
- RyanMcGreal 16y agoThe sets I'm working on tend not to tend toward infinity.
- eru 16y agoYes. But the approach with index only works for actual sets. And if you have actual sets, you might as well use Python's built-in sets.