Computer Science, asked by hudaabidi786, 2 months ago

Write a program to find the frequency of an element of the list.​

Answers

Answered by siyasheoran1234
2

Answer:

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