272. Closest Binary Search Tree Value II

Given the root of a Binary Search Tree (BST), a target value, and an integer k, return the k node values in the BST that are closest to the target.

You may return the answer in any order. You are guaranteed that there is only one unique set of k values in the BST that are closest to the target, so tie-breaking between different value sets never changes which values are selected.

Examples
Input: [[8,4,12,2,6,10,14],7.25,1]
Output: [8]
Hints
Related Problems

272. Closest Binary Search Tree Value II

Given the root of a Binary Search Tree (BST), a target value, and an integer `k`, return the `k` node values in the BST that are closest to the target.