feat(content): hidden test cases
This commit is contained in:
@@ -27,6 +27,12 @@ test_cases:
|
||||
expected: [1]
|
||||
- input: { nums: [1, 2, 3, 4, 5], k: 5 }
|
||||
expected: [1, 2, 3, 4, 5]
|
||||
- input: { nums: [1, 2, 3, 4, 5, 6], k: 2 }
|
||||
expected: [5, 6, 1, 2, 3, 4]
|
||||
- input: { nums: [1, 2], k: 3 }
|
||||
expected: [2, 1]
|
||||
- input: { nums: [1], k: 1 }
|
||||
expected: [1]
|
||||
|
||||
description: |
|
||||
Given an integer array `nums`, rotate the array to the right by `k` steps, where `k` is non-negative.
|
||||
|
||||
Reference in New Issue
Block a user