All unique
Input
s = "abcdef"
Output
True
No character repeats in the string.
Full lesson preview
Determine whether a string contains all unique characters using frequency checking.
Problem statement
Task
Examples
Input
s = "abcdef"
Output
True
No character repeats in the string.
Input format
Output format
Constraints
Samples
Input
s = "aabc"
Output
False
'a' appears more than once.