You are not logged in. Please login at www.codechef.com to post your questions!

×

Editorial - DELSUM (KTBC2015 contest)

PROBLEM LINK:

Practice, Contest

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

DIFFICULTY:

CAKEWALK

PREREQUISITES:

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".

asked 15 Oct '15, 12:11

chandubaba's gravatar image

3★chandubaba ♢
111
accept rate: 0%

edited 15 Oct '15, 12:32

admin's gravatar image

0★admin ♦♦
15.6k347484505

toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • 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:

×11,355
×1,018
×867
×223
×48
×12
×8
×8

question asked: 15 Oct '15, 12:11

question was seen: 864 times

last updated: 15 Oct '15, 12:32