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