Python

Check if a string contains all unique characters in Python

This Python Program will help you check “if a string contains all unique characters” Python Program To Check If a string contains all unique characters def isUniqueChars(st): if len(st) > 256: return False char_set = [False] * 128 for i in range(0, len(st)): val = ord(st[i]) if char_set[val]: return False char_set[val] = True return True …

Check if a string contains all unique characters in Python Read More »