在字符串C#中查找最多出现的字符,返回最长的一组重复字符的字符串(Find the most occurrence of a character in string C#, returning the string of the longest set of recurring characters)
我对此处已经提出的问题进行了扩展
但是,我想返回原始字符串中最长的重新确定字符集的列表,而不是由最高阶排序的字符列表及其相对计数。
我对链接非常精通,但从未遇到过在字符串中查询字符类型的实例,并认为有人可以给我一个提示,以帮助我理解LINQ的特定用例...
谢谢
I have an extension to a question already asked here
However I want to return the list of the longest set of reaccuring characters in the original string, not a list of char & their relative count, ordered by higheest.
I was fairly well versed in link, but had never come accross an instance of querying char types in a string and thought someone could give me a hint to help me understand specific use-cases of LINQ...
Thanks
更多推荐
发布评论