CodingReported in a candidate post, Aug 2024
Sum of 4 smallest numbers
Filed under Josh Technology
The question
Return the sum of the 4 smallest numbers in an array with O(n) time and O(1) space.
No write-up yet. Related questions below have one.
Related Josh Technology questions
Collected from public candidate posts and coding forums. Updated Nov 2026.