面试题 01.01
Implement an algorithm to determine if a string has all unique characters. What if you cannot use additional data structures?
Example 1:
Input: s = "leetcode" Output: false Example 2:
Input: s = "abc" Output: true
Note:
0 <= len(s) <= 100
Solutions
bitset
sort
Last updated
Was this helpful?