658. Find K Closest Elements

Binary Search + Sliding Window

time: O(logn+k)

space: O(1)

Last updated

Was this helpful?