当前位置:网站首页>【Daily Question】640. Solving Equations

【Daily Question】640. Solving Equations

2022-08-11 10:02:00 Wang Liuliu, who loves to write bugs

640. Solving Equations

Replace "-" with "±", then, firstly press "=" to divide, then press "+" to divide, and then move items and merge similar items. Note that the difference between "x" and "-x"special handling.

class Solution {public String solveEquation(String equation) {// move the x to the left and the others to the rightString[] arr1 = equation.
原网站

版权声明
本文为[Wang Liuliu, who loves to write bugs]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/223/202208110949523206.html