Ayush7614 / Daily-Coding-DS-ALGO-Practice

A open source project🚀 for bringing all interview💥💥 and competative📘 programming💥💥 question under one repo📐📐
https://daily-ds-algo.github.io/DS-Algo-Website/
MIT License
320 stars 475 forks source link

Maximize the sum of selected numbers from an array to make it empty #257

Closed PriyankaHotchandani closed 3 years ago

PriyankaHotchandani commented 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

github-actions[bot] commented 3 years ago

Hi thanks for creating your first issue at Daily-Coding-DS-ALGO-Practice, hope you followed the guideline.

Jagannath8 commented 3 years ago

Can I solve this problem in Java. I'm a participant of LGM-SOC'21