最新 最热

Leetcode 135 Candy

There are N children standing in a line. Each child is assigned a rating value. You are giving candies to these children subjected to the following requiremen...

2018-01-12
1

Leetcode 150 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 expressi...

2018-01-12
1

Leetcode 198 House Robber

You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from ro...

2018-01-12
0

Leetcode 223. Rectangle Area

Find the total area covered by two rectilinear rectangles in a 2D plane. Each rectangle is defined by its bottom left corner and top right corner as shown in ...

2018-01-12
1

150.Evaluate Reverse Polish Notation(Stack-Medium)

该文介绍了如何计算逆波兰表达式的值。逆波兰表达式是一种后缀表达式,不需要括号来表示优先级,而是用操作数直接表示。该文通过一个堆栈来计算逆波兰表达式的值,在遍历逆波兰表达式时,遇到操作符就出栈,然后计算,最后将计算...

2018-01-08
1

[LeetCode] 40. Combination Sum II

该文是关于LeetCode的40. Combination Sum II问题的一个解决方案。该问题要求给定候选数字集合和目标数字,找到所有不重复的组合,使得它们的和等于目标数字。解决方案使用排序来避免重复组合,并使用递归实现核心算法。...

2018-01-03
0

LWC 52:688. Knight Probability in Chessboard

LWC 52:688. Knight Probability in Chessboard传送门:688. Knight Probability in ChessboardProblem: On

2018-01-02
1

LWC 61:739. Daily Temperatures

该文介绍了计算给定温度列表中每个元素下一天的最高温度的问题。通过使用栈和记忆化搜索算法,该文给出了一个高效的解决方案。

2018-01-02
0

LWC 60:735. Asteroid Collision

该文章介绍了LWC 60:735. Asteroid Collision问题,输入一个整数数组,找出碰撞后剩余行星的数量。文章首先介绍了算法思路,然后分别用Java和Python两种语言实现了算法。...

2018-01-02
1