Insert plus or minus signs between digits to reach a target

0
Remix

Given a string of digits and a target, insert +, - or nothing between consecutive digits so the expression equals the target, and return every such expression. Handle numbers with leading zeros.

MetaCodingLast asked Dec 2025
No answer yet. Write the first one; the best answer gets endorsed.