Given an integer array nums of size n, return all elements that appear more than n/3 times.
nums = array of integers
elements appearing more than n/3 times
Example 1:
Input:
nums = [3,2,3]
Output:
[3]
Explanation:
3 appears more than n/3 times.
All DSA practice problems · DSA mock interview · Mock interviews by company and role · Book a 1:1 interview