在字符串C#中查找最多出现的字符,返回最长的一组重复字符的字符串(Find the most occurrence of a character in string C#, returning the

编程入门 行业动态 更新时间:2024-10-11 03:15:27
字符串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

更多推荐

本文发布于:2023-08-02 08:17:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1372716.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:字符串   字符   最多   最长   occurrence

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!