Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem: 229. Majority Element II #43

Closed
godkingjay opened this issue Oct 6, 2023 · 1 comment · Fixed by #57 · May be fixed by #48
Closed

problem: 229. Majority Element II #43

godkingjay opened this issue Oct 6, 2023 · 1 comment · Fixed by #57 · May be fixed by #48
Assignees
Labels
difficulty: medium Medium difficulty problem. hacktoberfest Hacktoberfest issue. problem LeetCode problem.

Comments

@godkingjay
Copy link
Owner

Problem #229 (Majority Element II | Array, Counting, Hash Table, Sorting)

Medium

Given an integer array of size n, find all elements that appear more than ⌊ n/3 ⌋ times.

Example 1

Input: nums = [3,2,3] **Output:** [3]`

Example 2:

Input: nums = [1]
Output: [1]

Example 3:

Input: nums = [1,2]
Output: [1,2]

Constraints:

  • $1 <= nums.length <= 5 * 104$
  • $-109 <= nums[i] <= 10^9$
@godkingjay godkingjay added hacktoberfest Hacktoberfest issue. problem LeetCode problem. difficulty: medium Medium difficulty problem. labels Oct 6, 2023
@Joshna907
Copy link

Please assign me this issue @godkingjay

@godkingjay godkingjay linked a pull request Oct 7, 2023 that will close this issue
@godkingjay godkingjay linked a pull request Oct 7, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty: medium Medium difficulty problem. hacktoberfest Hacktoberfest issue. problem LeetCode problem.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants