Example 1 · empty
- Arguments
- values
[]
target0
- Expected return
[]
Test data
- Input
{"values":[],"target":0}- Expected output
[]
func PairSumIndices(values []int, target int) []intExamples use {"values": [...], "target": ...}.
The runner calls your functions directly; you do not need to parse JSON.
[]
0
[]
{"values":[],"target":0}[]
[ 8, 3, 6, 1 ]
9
[ 1, 2 ]
{"values":[8,3,6,1],"target":9}[1,2]
[ 2, 2, 3 ]
5
[ 0, 2 ]
{"values":[2,2,3],"target":5}[0,2]
[ 1, 4, 9 ]
8
[]
{"values":[1,4,9],"target":8}[]
Loading…
Checking execution availability…
View inputs and expected outputs. Examples do not run your code.