strings.is_contains_unique_chars

Functions

is_contains_unique_chars(→ bool)

Check if all characters in the string is unique or not.

Module Contents

strings.is_contains_unique_chars.is_contains_unique_chars(input_str: str) bool

Check if all characters in the string is unique or not. >>> is_contains_unique_chars(“I_love.py”) True >>> is_contains_unique_chars(“I don’t love Python”) False

Time complexity: O(n) Space complexity: O(1) 19320 bytes as we are having 144697 characters in unicode