Computer Science, asked by utharaudayan123, 6 months ago

write the algoritham To find the frequency of a character in a string​

Answers

Answered by Snehpriyanshu
5

Explanation:

Algorithm.

  • Define a string.

  • Define an array freq with the same size of the string.

  • Two loops will be used to count the frequency of each character.

  • Inner loop will compare the selected character with rest of the characters present in the string
Similar questions