feat(content): hidden test cases
This commit is contained in:
@@ -26,6 +26,12 @@ test_cases:
|
||||
expected: 2
|
||||
- input: { nums: [3, 3, 4] }
|
||||
expected: 3
|
||||
- input: { nums: [1, 1, 1, 1, 2, 3, 4] }
|
||||
expected: 1
|
||||
- input: { nums: [5, 5, 5, 5, 5] }
|
||||
expected: 5
|
||||
- input: { nums: [-1, -1, -1, 2, 2] }
|
||||
expected: -1
|
||||
|
||||
description: |
|
||||
Given an array `nums` of size `n`, return *the majority element*.
|
||||
|
||||
Reference in New Issue
Block a user