摘要: static public void DeleteRepeatChar(string s){ Dictionary d = new Dictionary(); foreach (var c in s){ int num = 0; if (d.TryGetValue(c, out num)){ d[c] += 1; ... 阅读全文
posted @ 2017-02-20 22:55 xiejunzhao 阅读(223) 评论(0) 推荐(0)
摘要: Write a function that takes a string as input and reverse only the vowels of a string.Example 1:Given s = "hello", return "holle".Example 2:Given s = "leetcode", return "leotcede"题意:反转字符串中元音字母的位置方法1:用... 阅读全文
posted @ 2017-02-20 00:06 xiejunzhao 阅读(205) 评论(0) 推荐(0)