查找字符串中出现频率最高的字符和次数
摘要:
string str = @"dsssaa"; var result1 = (from p in str.ToCharArray() group p by p into gr orderby gr.Count() descending select new { CharKey = gr.Key, CharCo... 阅读全文
posted @ 2012-10-29 21:46 笑东风 阅读(507) 评论(0) 推荐(0) 编辑