how he’s working with frequency array in “Unique characters string” problem
Count Qunique in string
hello @sauzepplin
we have declared 26 size frequency array to store its frequency.
at 0 we are storing frquency of ‘a’
at 1 we are storing frequency of ‘b’
similary other characters frequency.
if at any instant we find a character that is already occurend before(freq[that har] >0) then we return false becuase of repetition
Can we disscus it over meet , this is not making a lot sense to me.
do a dry run on small test case.
am having issue in this part only
…
dry run on these two strings->
s=“bada”
s=“abcd”
not getting it ! not even after drying run it.
ok then first try to solve this problem->
u r given a string and u need to find the frequency of each character of that string.
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.
