good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^6: How to check lines that start with the same word then delete one of themby rsFalse (Chaplain) |
on Apr 10, 2020 at 15:13 UTC ( [id://11115323]=note: print w/replies, xml ) | Need Help?? |
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) :)
In Section
Seekers of Perl Wisdom
|
|