8: Contains duplicate
Given a string, find if the string contains any duplicates characters
Example 1
Input: Bazinga
Output: true
Explanation:
aappears twice
Example 2
Input: code
Output: false
Explanation:
codehas no duplicate symbols
Given a string, find if the string contains any duplicates characters
Example 1
Input: Bazinga
Output: true
Explanation:
aappears twice
Example 2
Input: code
Output: false
Explanation:
codehas no duplicate symbols