loading...

re: Are these lists equal? VIEW POST

TOP OF THREAD FULL DISCUSSION
re: You could build a map with list 1, and then iterate over list 2 to compare each element with its count in the map. The asymptotic complexity is the...
 

That's right. That's the kind of response I was expecting from this post. My O(n) solution is clear enough to lay a foundation for non-asymptotic optimizations like yours or that of the first comment. Thanks for contributing!

Code of Conduct Report abuse