โ† American Express questions
CodingEasy

Minimum total marks to make all question scores distinct

Filed under American Express

The question

Given an array where each element represents the maximum marks assigned to a question, modify the marks such that all questions have distinct marks, each question has at least its original marks, and the overall sum of marks is minimized.

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

Related American Express questions

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