[閒聊] 計算機2

作者: SuicidePeko (string int = true;)   2021-12-25 14:59:14
Given a string s which represents an expression, evaluate this expression and
return its value.
The integer division should truncate toward zero.
You may assume that the given expression is always valid. All intermediate
results will be in the range of [-231, 231 - 1].
Note: You are not allowed to use any built-in function which evaluates
strings as mathematical expressions, such as eval().
幹你娘 好難喔
還要考慮先乘除後加減
好麻煩
作者: wwndbk (黑人問號)   2021-12-25 15:05:00
stack

Links booklink

Contact Us: admin [ a t ] ucptt.com