-->
当前位置:首页 > 题库 > 正文内容

PROGRAMMING:Find the most frequent character in a string

Luz3年前 (2021-05-10)题库390
Find the most frequent character in a string.
###Input format:
Given a string, the length of the string is not greater than 10 ^ 6, case insensitive, string may contain 'a' -'z ','a' -'z ',' '.
###Output format:
Output the characters that appear the most times (if they are letters, output lowercase letters), and separate them with a space. If there are characters that appear the same times, output smaller characters. There are no extra spaces and line breaks at the end of the line
###Input example:
```in
abcdefghijklmnopqrstuvwxyzA
```
###Output example:
```out
a 2
```






answer:If there is no answer, please comment

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。