Count frequency of each element in the array #99
Labels
hacktoberfest-accepted
Accepted Hacktober
help wanted
Extra attention is needed
Open Issue - Need Fix
Open issue that need to be fixed
Problem Explanation: -
Example 1:
Input: arr[] = {10,5,10,15,10,5};
Output: 10 3
5 2
15 1
Explanation: 10 occurs 3 times in the array
5 occurs 2 times in the array
15 occurs 1 time in the array
Example2:
Input: arr[] = {2,2,3,4,4,2};
Output: 2 3
3 1
4 2
Explanation: 2 occurs 3 times in the array
3 occurs 1 time in the array
4 occurs 2 time in the array
Hey @SilvaneUX I want to make more contributions. If you find this DSA problem useful please add a tag to it and assign me the same. I will be solving this problem in java.
The text was updated successfully, but these errors were encountered: