K Closest Elements in a Sorted Array (LC 658), Then Unsorted or Huge
Also reported as LeetCode 658
CodingLinkedInLast reported August 2026Low Frequency
Reported
1× across candidate reports
First seen
August 2026
Last reported
August 2026
Reported outcome
unknown
Problem Overview
LinkedIn coding question, reconstructed from 1 candidate report (August 2026). Candidates reported 2 follow-ups. The write-up includes a Python solution that passes 9 test cases.
2 candidate-reported follow-ups — the probes candidates report being asked, with the trigger for each
The full problem statement — full requirements, constraints, and edge cases
Approach and trade-offs — what passing candidates did, and the mistakes that sink people
Unlock the full LinkedIn catalog
Full problem statements, candidate-reported follow-ups, and walkthroughs — for every LinkedIn question.