how to get a array size from the user in python the correct answer receives the brainliest answer pls do help
Answers
Answered by
1
Answer:
Given an array of size n, find all elements in array that appear more than n/k times. For example, if the input arrays is {3, 1, 2, 2, 1, 2, 3, 3} and k is 4, then the output should be [2, 3]. Note that size of array is 8 (or n = 8), so we need to find all elements that appear more than 2 (or 8/4) times. There are two elements that appear more than two times, 2 and 3.
Similar questions
Science,
2 months ago
English,
2 months ago
Social Sciences,
2 months ago
Math,
6 months ago
English,
6 months ago
Business Studies,
11 months ago