CLRS icon indicating copy to clipboard operation
CLRS copied to clipboard

The complexity of your code in 2.3-7 is not right!!!

Open Xie-Minghui opened this issue 5 years ago • 0 comments

I think the complexity of your code in 2.3-7 whose complexity you say is O(n), is actually O(nlogn), because the complexity of inserting a element into map is log(n). You forget the cost of map.

Xie-Minghui avatar Feb 25 '19 12:02 Xie-Minghui