Compass | Onsite | Parse String that equal to 100
Anonymous User
388

Given a string of numbers, you need to parse this string and then use + or - between numbers. If the result of calculation is equal to 100, add this combo to result.

Example input:
"991"
Example output:
["9+91", "99+1"]

Please let me know if you have thought on this. Python is preferred. Thanks

Comments (4)