Answer the question
In order to leave comments, you need to log in
How to find the minimum sequence of n elements whose sum would be >= x, even if you subtract any k elements from the sequence?
What should such an algorithm look like? Given the input number of elements n, the minimum sum x and the number of elements that can remove (A may not remove) k, you need to find such elements that their sum would be minimal, but would always be greater than or equal to x, and the number itself there would be n elements.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question