[solved] – Question 76527
Write a function max_freq that takes in a string and returns maximum frequency of the characters in the string, i.e. the highest number of occurrences of a character.
Hint: You can use a std::map to maintain a count of the characters.
#include <string>
using namespace std;
int max_freq(string str) {
//code
}
Expert Answer
OR

