Skip to content

Sawengchuan/CodingGameSolution

Repository files navigation

Codingame Solution

The Ultimate Test

Write a program that outputs all possibilities to put + or - or nothing between the digits of a number N such that the result is K(a number).

For an example N = 123456789 and K = 100

Explanation : 1 + 2 + 3 - 4 + 5 + 6 + 78 + 9 = 100. (This is just 1 case, you are supposed to find all of them).

NOTE : When there is nothing between the numbers they get appended. NOTE : The order of the digits should not be changed. NOTE : Ordering priority is nothing > + > - . NOTE : There is no 0 involved in N.

NuGet Package

.NET CLI

dotnet add package TheUltimateTestQ --version 1.0.0

Package Manager

NuGet\Install-Package TheUltimateTestQ -Version 1.0.0

About

Some Codingame puzzles

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages