
栈
文章平均质量分 81
普通网友
这个作者很懒,什么都没留下…
展开
-
LeetCode 496 Next Greater Element I
You are given two arrays (without duplicates) nums1 and nums2 where nums1’s elements are subset of nums2. Find all the next greater numbers for nums1's elements in the corresponding places of nums2. T...原创 2018-02-18 18:31:18 · 194 阅读 · 0 评论 -
前缀表达式,中缀表达式,后缀表达式的一点微小理解
文章目录中缀表达式前缀表达式前缀求值中缀变前缀前缀变中缀后缀表达式中缀变后缀后缀变中缀后缀求值中缀表达式 中缀即我们平时用的数学表达式,其递归定义为中缀表达式 运算符 中缀表达式。举例:1+2,(1+2)*(3+4).这种表达式便于直观理解但是不方便计算机计算。后来有波兰人发明了前缀,后缀表达式。前缀表达式也叫波兰式,后缀表达式也叫逆波兰式。前后缀表达式经常作为栈在优先级的应用的例题。...原创 2019-05-11 18:53:13 · 1986 阅读 · 2 评论