Majority Element II

Given an integer array nums of size n, return each distinct value that appears strictly more than ⌊ n/3 ⌋ times. The result may be in any order. At most two values can qualify.

Examples
Input: [3,2,3]
Output: [3]
Hints
Related Problems

Majority Element II

Given an integer array `nums` of size `n`, return each distinct value that appears strictly more than `⌊ n/3 ⌋` times. The result may be in any order. At most two values can qualify.