Comment on Turn O(n^2) reverse into O(n)parentComments−eru12y[...] how are mere mortals supposed to reason about algorithmic efficiency?You profile, and then you look at the suspicious parts.
Comments
You profile, and then you look at the suspicious parts.