All the provided solutions fails if I update the input string to :
unique_str = “AbCDefG”
to
unique_str = “Ab CD efG”
In the implementation, wouldn’t it be better to get rid of all spaces and converting all characters into lowercase?
Course: Data Structures and Algorithms in Python - AI-Powered Learning for Developers
Lesson: Solution Review: Is Unique - Data Structures and Algorithms in Python
Course: Data Structures and Algorithms in Python - AI-Powered Learning for Developers
Lesson: Solution Review: Is Unique - Data Structures and Algorithms in Python