Suppose user input a string and returns the character that occurs the most frequently in it.
Example - Aptara ---Here ans is a 3 times
1212332133733-- Here ans is 3
Suppose user input a string and returns the character that occurs the most frequently in it.
Example - Aptara ---Here ans is a 3 times
1212332133733-- Here ans is 3
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sardar Mudassar Ali KhanPosted Mar 1, 2023, 12:26 PM
You can get help from the given below Code
Naimish MakwanaPosted Mar 1, 2023, 8:48 AM
Hello Rajeev,
Try below
Thanks
Sachin SinghPosted Mar 1, 2023, 8:43 AM
The easiest would be
Jignesh KumarPosted Mar 1, 2023, 8:17 AM
Hi Rajeev,
Please try this code snippet,