摘要:
Longest Well-Performing Interval 表现良好的最长时间段 We are given hours, a list of the number of hours worked per day for a given employee. A day is considered 阅读全文
摘要:
Verify Preorder Serialization of a Binary Tree 验证二叉树前序序列化 前序遍历是啥就不说了,百度一下, 简单说就是root-> left_child->right_child.被前序序列化的二叉树就是一个按照前序遍历的顺序,空节点用#来标识。 该二叉树可 阅读全文
摘要:
Minimum Remove to Make Valid Parentheses 移除无效的括号 给出一个string,其中包含(, ),以及小写字母a~z组成,要求删掉最少的(或),使得剩余的字符串是有效的括号字符串。 Input: s = "a)b(c)d" Output: "ab(c)d" I 阅读全文
摘要:
Remove Outermost Parentheses 删除最外层的括号 Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string i 阅读全文
摘要:
Valid Parentheses 有效的括号 Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. 左括号必须 阅读全文