Mr. Myers wants to edit the marks assigned to the questions
Pyramid Examples Java Program for find duplicate element and increased duplicate element by 1 A mathematics question paper has certain number of questions and each question is assigned some random maximum marks Mr. Myers wants to edit the marks assigned to the questions such that. (1) all questions in the paper should have distinct maximum marks. (2) the total marks of all the questions should be as low as possible. Mr. Myers wants to achieve this by making minimal changes in the original format, assigning the question at least so much marks as it originally had. find the minimum total marks that can set the paper for. ? All the inputs in array are minimum marks for a question and it can increase if the duplicates occurred in the array. Example Input 3 2 4 4 Example Output 11 Explanation As two questions have the same marks, max marks for one of them needs to be incremented to 4. He can set the paper with 2+4+4=11 marks. This progra...