Objective: Write an algorithm to find out whether in a given string contains all the unique characters. This question has been asked in the Amazon and Microsoft interviews.
Input: A String
Output: True or false based upon whether string contains all the unique characters or not.
Approach:
Method 1.
When characters are not ASCII but could be anything alphabets or special characters