LeetCode
文章平均质量分 91
ibingoogle
这个作者很懒,什么都没留下…
展开
-
LeetCode 62. Unique Paths
题目链接:https://leetcode.com/problems/unique-paths/A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).The robot can only move either down or right at原创 2016-07-17 04:12:59 · 194 阅读 · 0 评论 -
LeetCode 374. Guess Number Higher or Lower
题目链接: https://leetcode.com/problems/guess-number-higher-or-lower/We are playing the Guess Game. The game is as follows:I pick a number from 1 to n. You have to guess which number I picke原创 2016-07-18 00:51:12 · 331 阅读 · 0 评论 -
LeetCode 284. Peeking Iterator
题目链接: https://leetcode.com/problems/peeking-iterator/Given an Iterator class interface with methods: next() and hasNext(), design and implement a PeekingIterator that support the peek()ope原创 2016-07-19 14:04:04 · 235 阅读 · 0 评论 -
LeetCode 150. Evaluate Reverse Polish Notation
题目链接:https://leetcode.com/problems/evaluate-reverse-polish-notation/Evaluate the value of an arithmetic expression in Reverse Polish Notation.Valid operators are +, -, *, /. Each operand m原创 2017-01-04 04:29:26 · 274 阅读 · 0 评论 -
LeetCode 119. Pascal's Triangle II
题目链接:https://leetcode.com/problems/pascals-triangle-ii/Given an index k, return the kth row of the Pascal's triangle.For example, given k = 3,Return [1,3,3,1].基本思路:1. 关于什么是Pa原创 2017-01-07 02:36:33 · 247 阅读 · 0 评论 -
LeetCode 118. Pascal's Triangle
题目链接:https://leetcode.com/problems/pascals-triangle/Given numRows, generate the first numRows of Pascal's triangle.For example, given numRows = 5,Return[ [1], [1,1], [1,2,1],原创 2017-01-07 02:13:09 · 315 阅读 · 0 评论