feat(content): hidden test cases
This commit is contained in:
@@ -10,6 +10,28 @@ categories:
|
||||
patterns:
|
||||
- dynamic-programming
|
||||
|
||||
function_signature: "def sort_array(nums: list[int]) -> list[int]:"
|
||||
|
||||
test_cases:
|
||||
visible:
|
||||
- input: { nums: [5, 2, 3, 1] }
|
||||
expected: [1, 2, 3, 5]
|
||||
- input: { nums: [5, 1, 1, 2, 0, 0] }
|
||||
expected: [0, 0, 1, 1, 2, 5]
|
||||
hidden:
|
||||
- input: { nums: [1] }
|
||||
expected: [1]
|
||||
- input: { nums: [2, 1] }
|
||||
expected: [1, 2]
|
||||
- input: { nums: [1, 2, 3, 4, 5] }
|
||||
expected: [1, 2, 3, 4, 5]
|
||||
- input: { nums: [5, 4, 3, 2, 1] }
|
||||
expected: [1, 2, 3, 4, 5]
|
||||
- input: { nums: [-1, 0, 1, -5, 3] }
|
||||
expected: [-5, -1, 0, 1, 3]
|
||||
- input: { nums: [3, 3, 3, 3] }
|
||||
expected: [3, 3, 3, 3]
|
||||
|
||||
description: |
|
||||
Given an array of integers `nums`, sort the array in ascending order and return it.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user