write a program to count the frequency of given element in a list number
Answers
Answered by
12
Answer:
this is the answer I found please follow me and mark me as brainliest please
Attachments:
Answered by
8
Explanation:
PROGRAM:
•#Initialize array.
•arr = [1, 2, 8, 3, 2, 2, 2, 5, 1];
•#Array fr will store frequencies of element.
•fr = [None] * len(arr);
•visited = -1;
•for i in range(0, len(arr)):
•count = 1;
•for j in range(i+1, len(arr)):
Similar questions