1p3a_oj Question

Minimize Result by Adding Parentheses to Expression

Question Details

You are given a string expression representing an expression made of decimal digits and exactly one plus sign +, e.g. "247+38". Insert one pair of parentheses () into the expressi

Full Details

🔒

Unlock all Pinterest questions

Full insider details, leaked discussions, and candidate experiences.

or every company, $100/year →

About This Question

This is a reported interview question from a pinterest interview for a swe role during the coding round.

It covers the following topics: Strings .

Topics