Leetcode 面试题 01.01. 判定字符是否唯一 c#

题目:
实现一个算法,确定一个字符串 s 的所有字符是否全都不同。

示例 1:

输入: s = “leetcode”
输出: false
示例 2:

输入: s = “abc”
输出: true

            //运用HashSet的属性来判断,如果有重复肯定和原来字符串长度不一样,
            HashSet<int> a = new HashSet<int>();
            for (<

你可能感兴趣的:(Leetcode,算法c#,字符串,leetcode,算法,哈希表,c#)