5 ms·
This is a great approach. Even better because you carefully examined the requirements and found an interpretation which allowed you to make an optimization (wor
by jessedhillon 13y ago
This is a great approach. Even better because you carefully examined the requirements and found an interpretation which allowed you to make an optimization (words only, not counts, therefore sets are useful)
- jules 13y agoThis isn't an optimization. He turned a O(n) algorithm into a O(n^2) one.