×

# Editorial - DELSUM (KTBC2015 contest)

Author: Chandan Boruah Tester: Chandan Boruah Editorialist: Chandan Boruah

CAKEWALK

Math, Sorting

# PROBLEM:

You have to find the minimum sum of numbers from a list after removing a given number of numbers.

# QUICK EXPLANATION:

Just sort the array, reverse it and sum the values from required value.

# EXPLANATION:

Sort the array, so that the highest values are found at the end. Then Reverse the array(optional, so that calculation is easy..faster to type, being a "quick match") and start summing after the required count of numbers.

Video Editorial!! (Innovative editorial, please let me know if this is fine?)

This question is marked "community wiki".

13310
accept rate: 0%

19.6k349497539

 toggle preview community wiki:
Preview

By Email:

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• image?![alt text](/path/img.jpg "title")
• numbered list: 1. Foo 2. Bar
• to add a line break simply add two spaces to where you would like the new line to be.
• basic HTML tags are also supported
• mathemetical formulas in Latex between \$ symbol

Question tags:

×15,182
×1,579
×1,163
×317
×170
×12
×8
×8

question asked: 15 Oct '15, 12:11

question was seen: 1,098 times

last updated: 15 Oct '15, 12:32