+ 1
Write a program that places a +, -, or a space between the digits 1, 2, ..., 9 (in this order) so that the result is 100.
Write a program that places a +, -, or a space between the digits 1, 2, ..., 9 (in this order) so that the result is 100. For example: 1 + 2 + 34 - 5 + 67 - 8 + 9 = 100. Task from: https://proglib.io/p/5-problems-for-software-engineer/
4 Réponses
+ 2
hah, @VcC your challenge help me to solve this 😀
https://code.sololearn.com/W8Ot4n34o1xi/?ref=app
+ 1
I think victory is mine. Sorry @ysraelcon
https://code.sololearn.com/cean4Mq567qa/?ref=app
0
It could be solved using recursion + memoization.. sorry but I can't code it now (laptop is not here 😁).. I'll code it as soon as possible
0
Discard mul div and drop, add concat in the following code : https://code.sololearn.com/ccQZXwI4XcH7/?ref=app