image
IoTalents

Moderator
0

Coding Challenge Series: Summing to 100


Challenge

Insert + or - signs anywhere between the digits 123456789 in such a way that the expression evaluates to 100. The order of the digits must not be changed.

Sample solution: 1 + 2 + 3 - 4 + 5 + 6 + 78 + 9 = 100

Coding Challenge: Write a program to output all solutions.

[You may use any programming language]



- IoTalents
Cancel