Closed PriyankaHotchandani closed 3 years ago
As a participant of LGM-SOC'21, I want to provide the solution to this medium-level competitive programming problem in C++.
Maximize the sum of selected numbers from an array to make it empty. Input : arr[ ] = {1, 2, 2, 2, 3, 4} Output : 10
Hi thanks for creating your first issue at Daily-Coding-DS-ALGO-Practice, hope you followed the guideline.
Can I solve this problem in Java. I'm a participant of LGM-SOC'21
As a participant of LGM-SOC'21, I want to provide the solution to this medium-level competitive programming problem in C++.
Maximize the sum of selected numbers from an array to make it empty. Input : arr[ ] = {1, 2, 2, 2, 3, 4} Output : 10