feat(content): hidden test cases
This commit is contained in:
@@ -28,6 +28,10 @@ test_cases:
|
||||
expected: 4
|
||||
- input: { nums: [1, 2, 3, 4, 5], target: 3 }
|
||||
expected: 2
|
||||
- input: { nums: [-5, -3, -1, 0, 2, 4], target: -3 }
|
||||
expected: 1
|
||||
- input: { nums: [1, 3], target: 2 }
|
||||
expected: -1
|
||||
|
||||
description: |
|
||||
Given an array of integers `nums` which is sorted in ascending order, and an integer `target`, write a function to search `target` in `nums`.
|
||||
|
||||
Reference in New Issue
Block a user