In this code how exactly is count is working?For example if a string is a a b c.So at first count[str[0]]++…so after coming at 2nd index that is at b then count will be 3 na?
So how individual character frequency is taking place.I hope my question is understandable
What is meant bycount[[str[i]]++
hello @aatmictiwari19 in this code basicalyy you are increasing the frequency or the the occurence of number of characters according to their ASCII value .
like if you see if you have a then for lowerccase a the ascii value is 97 and it will increment the occurence of a .
for the number of times the a will come in the string .
if you still have doubt you can ask here .
Happy Learning !!
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.