()
| 5 | ) |
| 6 | |
| 7 | func main() { |
| 8 | arr := []int{1, 2, 3, 4} |
| 9 | fmt.Println(findClosestElements(arr, 2, 2)) |
| 10 | } |
| 11 | |
| 12 | func findClosestElements(arr []int, k int, x int) []int { |
| 13 | left, right := 0, len(arr)-k |
nothing calls this directly
no test coverage detected