Back to Questions

Expression Add Operators

78.2K viewsAsked at Stripe
Hard

Question Explain

Given a string that contains only digits 0-9 and a target value, find all possibilities to insert binary operators (+, -, *) between the digits to evaluate to the target value. Use Backtracking.

Start Trying This Question Simulation

Practice answering orally or with text to get instant AI feedback.

Practice with This Question