CtCI-6th-Edition-cpp icon indicating copy to clipboard operation
CtCI-6th-Edition-cpp copied to clipboard

Update 1. Is_unique.cpp with new soluction

Open mramanindia opened this issue 3 years ago • 1 comments

I have used sorting to decrease its time complexity to O(N log N) and its quite easy to understand also.

mramanindia avatar May 18 '21 05:05 mramanindia

This solution already exists. Look at the function isUniqueChars_noDS.

sergio-nsk avatar May 18 '21 05:05 sergio-nsk