Experiment Title: Counting Frequencies of Array Elements
Experiment Title: Counting Frequencies of Array Elements
2. Task to be done/ Which logistics used:Given an array which may contain duplicates, print all elements
and their frequencies.
3. Algorithm/Flowchart
Algorithm to find the frequency of each element of an array
Input the number of elements of an array.
Input the array elements.
Create another array to store the frequency of elements.
Traverse the input array and update the count of the elements in the frequency array.
Print the frequency array which displays the frequency of all the elements of the array.
6. Result/Output/Writing Summary:
Output:
22
41
62