Using c++ solve the following

Given an ArrayList of N lowercase characters. The task is to count frequency of elements in the list.

@neharika.srivastav Hey neharika, This Problem is discussed in the CPP Webinar : 2-D Arrays, String video which is in the Arrays 2.0(2D Arrays , String) section.

And still you want to solve this problem then tell me i will give you hint.

pl give hint, ill solve

make a array of 26 int a[26]={0}
and make
like there is array of char
a[int(char[i])-97]++
after iterating on whole char array
just itererate on a and it will have frequency of all element in char array

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.