Search
⌘K

Leetcode 640. Solve the Equation

Parse the linear equation with '+' and '-' to aggregate x-coefficients and constants on each side, then compute the net coefficient and constant to determine whether there is no solution, infinitely many, or a unique integer solution and return "No solution", "Infinite solutions", or "x=#value".


Question Timeline

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

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