http://qs321.pair.com?node_id=11115323


in reply to Re^5: How to check lines that start with the same word then delete one of them
in thread How to check lines that start with the same word then delete one of them

I think your solution works in O(n*log n), because searching an item in a hash takes log n. Am I right? Still much much faster that O(n*n) :)