i want to implement maximum frequency of the charcater that occurs in a string using stl i know t o do using char array of size 26 please help print the most frquent occuring character using stl and its frequency too
Printing maximum occuring frequncy
@AyushKumar9032 Use maps or unordered map for this. You an directly acces the element with max frequency
I am not good at STL I lack implementation knowledge please can you your self type the code and show
@ayush693 This is the best opportunity for you to learn these stuff. Maps , sets ,priorityqueue and many other stl algorithms are really important to learn.I can write for maps but you wouldn’t put effort to learn yourself which I don’t want. So Try to search and learn them.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.