CtCI-6th-Edition-cpp
CtCI-6th-Edition-cpp copied to clipboard
Update 1. Is_unique.cpp with new soluction
I have used sorting to decrease its time complexity to O(N log N) and its quite easy to understand also.
This solution already exists. Look at the function isUniqueChars_noDS
.