随笔分类 -  Stack

摘要:You have a browser of one tab where you start on the homepage and you can visit another url, get back in the history number of steps or move forward i 阅读全文
posted @ 2022-10-03 03:31 苗妙苗 阅读(26) 评论(0) 推荐(0)
摘要:Given a circular integer array nums (i.e., the next element of nums[nums.length - 1] is nums[0]), return the next greater number for every element in  阅读全文
posted @ 2021-11-01 02:58 苗妙苗 阅读(24) 评论(0) 推荐(0)
摘要:Output the most inner string: "ab(cd(e)fg)" => "e", "Hello World!" =>"Hello World!" "ab{cd[ef]} gh(hello{hi})" =>"ef", "hi" 先用https://www.geeksforgeek 阅读全文
posted @ 2021-02-06 14:51 苗妙苗 阅读(90) 评论(0) 推荐(0)
摘要:Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input string is valid if: 阅读全文
posted @ 2020-10-25 00:39 苗妙苗 阅读(89) 评论(0) 推荐(0)
摘要:[抄题]: Implement a basic calculator to evaluate a simple expression string. The expression string contains only non-negative integers, +, -, *, / opera 阅读全文
posted @ 2018-08-03 11:22 苗妙苗 阅读(180) 评论(0) 推荐(0)
摘要:[抄题]: Evaluate the value of an arithmetic expression in Reverse Polish Notation. Valid operators are +, -, *, /. Each operand may be an integer or ano 阅读全文
posted @ 2018-07-26 17:03 苗妙苗 阅读(208) 评论(0) 推荐(0)
摘要:[抄题]: Given an encoded string, return it's decoded string. The encoding rule is: k[encoded_string], where the encoded_string inside the square bracket 阅读全文
posted @ 2018-07-25 10:26 苗妙苗 阅读(201) 评论(0) 推荐(0)