【LeetCode刷题Java版】
文章平均质量分 90
hoxis
这个作者很懒,什么都没留下…
展开
-
【LeetCode刷题Java版】Maximum Product Subarray
Find the contiguous subarray within an array (containing at least one number) which has the largest product. For example, given the array [2,3,-2,4], the contiguous subarray [2,3] has the largest pr原创 2014-10-24 12:12:40 · 2286 阅读 · 0 评论 -
【LeetCode刷题Java版】Reverse Words in a String
Given an input string, reverse the string word by word. For example, Given s = "the sky is blue", return "blue is sky the". click to show clarification. Clarification: What constitutes原创 2014-10-13 14:21:21 · 2886 阅读 · 0 评论 -
【LeetCode刷题Java版】Evaluate Reverse Polish Notation(计算逆波兰表达式)
Evaluate the value of an arithmetic expression in Reverse Polish Notation. Valid operators are +, -, *, /. Each operand may be an integer or another expression. Some examples: ["2", "1",原创 2014-10-13 18:02:40 · 3628 阅读 · 0 评论