![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
栈
Mr._Hou
这个作者很懒,什么都没留下…
展开
-
leetcode 496. 下一个更大元素 I(next greater element i)C语言
leetcode 496. 下一个更大元素 I(next greater element i)C语言1.description2.solution1.descriptionhttps://leetcode-cn.com/problems/next-greater-element-i/给定两个 没有重复元素 的数组 nums1 和 nums2 ,其中nums1 是 nums2 的子集。找到 nums1 中每个元素在 nums2 中的下一个比其大的值。nums1 中数字 x 的下一个更大元素是指 x 在原创 2020-05-31 21:43:50 · 308 阅读 · 0 评论 -
leetcode 84.柱状图中最大的矩形(largest rectangle in histogram)C语言
leetcode 84.柱状图中最大的矩形(largest rectangle in histogram)C语言1.description2.solution1.descriptionhttps://leetcode-cn.com/problems/largest-rectangle-in-histogram/description/给定 n 个非负整数,用来表示柱状图中各个柱子的高度。每个柱子彼此相邻,且宽度为 1 。求在该柱状图中,能够勾勒出来的矩形的最大面积。以上是柱状图的示例,其中每个柱原创 2020-05-30 11:26:38 · 383 阅读 · 0 评论 -
leetcode 20.有效的括号(valid parentheses)C语言
leetcode 20.有效的括号(valid parentheses)C语言1.description2.solution1.descriptionhttps://leetcode-cn.com/problems/valid-parentheses/description/给定一个只包括 ‘(’,’)’,’{’,’}’,’[’,’]’ 的字符串,判断字符串是否有效。有效字符串需满足:左括号必须用相同类型的右括号闭合。左括号必须以正确的顺序闭合。注意空字符串可被认为是有效字符串。示例 1:原创 2020-05-28 15:49:39 · 171 阅读 · 0 评论 -
leetcode 1124.表现良好的最长时间段(longest well performing interval)C语言
leetcode 1124.表现良好的最长时间段(longest well performing interval)C语言1.description2.solution1.descriptionhttps://leetcode-cn.com/problems/longest-well-performing-interval/description/给你一份工作时间表 hours,上面记录着某一位员工每天的工作小时数。我们认为当员工一天中的工作小时数大于 8 小时的时候,那么这一天就是「劳累的一天」。原创 2020-05-27 10:07:24 · 825 阅读 · 0 评论 -
leetcode 155.最小栈(min stack)C语言
leetcode 155.最小栈(min stack)C语言1.description2.solution1.descriptionhttps://leetcode-cn.com/problems/min-stack/description/设计一个支持 push ,pop ,top 操作,并能在常数时间内检索到最小元素的栈。push(x) —— 将元素 x 推入栈中。pop() —— 删除栈顶的元素。top() —— 获取栈顶元素。getMin() —— 检索栈中的最小元素。示例:输入:原创 2020-05-18 20:51:42 · 337 阅读 · 0 评论