Check if string has all unique characters

Implement an algorithm to determine if a string (of characters from ā€˜aā€™ to ā€˜zā€™) has all unique characters or not. Example 1: var s = “abcde”; returns true; Example 2: var s = “abcade”; returns false; Solution 1: The brute force solution will be to iterate through all characters and compare with all other characters. … Continue reading Check if string has all unique characters