Search
⌘K
Get Premium
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.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.