Stack&Queue
周大侠
这个作者很懒,什么都没留下…
展开
-
[LeetCode]Longest Valid Parentheses(!!!)
Given a string containing just the characters ‘(’ and ‘)’, find the length of the longest valid (well-formed) parentheses substring. For “(()”, the longest valid parentheses substring is “()”,原创 2015-07-14 22:54:55 · 333 阅读 · 0 评论 -
[LeetCode] Largest Rectangle in Histogram
Largest Rectangle in Histogram Given n non-negative integers representing the histogram’s bar height where the width of each bar is 1, find the area of largest rectangle in the histogram.原创 2015-09-01 10:51:00 · 301 阅读 · 0 评论 -
[LeetCode] Clone Graph(!!!!graph&dfs&bfs)
Clone Graph Clone an undirected graph. Each node in the graph contains a label and a list of its neighbors. OJ’s undirected graph serialization: Nodes are labeled uniquely. We use # a原创 2015-09-10 22:37:06 · 330 阅读 · 0 评论 -
[LeetCode] Binary Tree Inorder Traversal
Binary Tree Inorder Traversal My Submissions Question Solution Total Accepted: 85535 Total Submissions: 232962 Difficulty: Medium Given a binary tree, return the inorder traversal of its nodes’原创 2015-09-26 22:58:56 · 257 阅读 · 0 评论