https://leetcode-cn.com/contest/weekly-contest-143/problems/parsing-a-boolean-expression/
在三种运算里,与运算以及或运算可以有任意多个参数,可以两个两个运算,变为双参数运算,就简单多了。
当遇到多参数运算时,要转化为双参数!
多参数转双参数
最新推荐文章于 2019-08-14 17:22:08 发布
https://leetcode-cn.com/contest/weekly-contest-143/problems/parsing-a-boolean-expression/
在三种运算里,与运算以及或运算可以有任意多个参数,可以两个两个运算,变为双参数运算,就简单多了。
当遇到多参数运算时,要转化为双参数!