Find the K Closest Pairs in a Sorted Array
Company: Apple
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: medium
Interview Round: Onsite
Quick Answer: Implement `k_closest_pairs(nums, k)` for a strictly increasing sorted array. Work through the function contract, boundary cases, correctness argument, and time and space complexity expected in a production-quality solution.