โ† Infoedge questions

Four elements with minimum sum, then build a priority queue from scratch

Filed under Infoedge

The question

Given an array, find the four elements whose sum is minimum. The candidate gave a sort-based brute force, then a priority queue approach, after which the interviewer disallowed the built-in priority queue.

No write-up yet. Related questions below have one.

Related Infoedge questions

Collected from public candidate posts and coding forums. Updated Nov 2026.