摘要:
3765. 表达式树 将给定的表达式树(二叉树)转换为等价的中缀表达式(通过括号反映操作符的计算次序)并输出。 /** * Definition for a binary tree node. * struct TreeNode { * string val; * TreeNode *left; * 阅读全文
posted @ 2022-08-05 16:53
Tshaxz
阅读(102)
评论(0)
推荐(0)
摘要:
151. 表达式计算4 写法一: #include <iostream> #include <stack> #include <unordered_map> using namespace std; stack<char> op; stack<int> num; int qmi(int a, int 阅读全文
posted @ 2022-08-05 15:42
Tshaxz
阅读(33)
评论(0)
推荐(0)

浙公网安备 33010602011771号