A
A
AVoiNN2020-05-22 15:44:40
Algorithms
AVoiNN, 2020-05-22 15:44:40

Task: How to find from a limited number of numbers those from which it is possible to compose an input number?

Good afternoon dear community!
Faced the following algorithmic task:
Given a number, for example 2028
and also given a list of numbers entered from the keyboard: 1000, 56, 28, 88, 1999
It is necessary to create an algorithm that would display numbers (pairs, triples ...) from which you can compose the first number (i.e. the number 2028)

Can be implemented in any programming language or pseudocode.
I would be very grateful for any help!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dmshar, 2020-05-22
@dmshar

Full enumeration. With a possible end of the iteration when the current amount of the specified number is exceeded.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question