Question DSA-STR-0080
HardWhich is the most efficient way to check whether a string has all unique characters, if the alphabet is ASCII?
- A.
Sorting, O(n log n)
- B.
A 128-entry boolean array, O(n) time and O(1) space
- C.
Nested loops, O(n²)
- D.
Recursion
Sign up free to see the answer and a step-by-step explanation.