Search
⌘K

Leetcode 592. Fraction Addition and Subtraction

Parse a string of signed fractions, sum them correctly accounting for signs (e.g., by accumulating with a common denominator or using LCM), and return the result as an irreducible fraction (use gcd to reduce; output x/1 for integers).


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.