Determine if a string has all unique characters: Difference between revisions