โ† EPAM questions
CodingHard

Repeated operations on two maximum elements of an array

Filed under EPAM

The question

Given an array, repeatedly extract the two largest elements, perform a specified operation on them, and reinsert the result back into the array until a stopping condition is reached.

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

Related EPAM questions

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