shuaijiang's blog
  • 首页
  • 归档
  • 分类
  • 标签
  • 关于

LeetCode Best Time To Buy And Sell Stock 2

DescriptionSay you have an array for which the i(th) element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may complete as many transactions as you like (
7月 9 2015
#leetcode

LeetCode Maximum Subarray

DescriptionFind the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, given the array [−2,1,−3,4,−1,2,1,−5,4],the contiguous subarray [4,−1,2
7月 9 2015
#leetcode

LeetCode Linked List Cycle2

DescriptionThe original problem is here. The original code is here.
7月 9 2015
#leetcode

LeetCode Linked List Cycle

DescriptionThe original problem is here. The original code is here.
7月 9 2015
#leetcode

LeetCode Summary Ranges

DescriptionGiven a sorted integer array without duplicates, return the summary of its ranges. For example, given [0,1,2,4,5,7], return [“0->2”,”4->5”,”7”]. The original problem is here. The orig
7月 9 2015
#leetcode

LeetCode Binary Tree Right Side View

DescriptionGiven a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom. For example:Given the following binary tree,
7月 9 2015
#leetcode

LeetCode Remove Linked List Elements

DescriptionGiven two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally identical and the nodes have the same value. The o
7月 9 2015
#leetcode

LeetCode Sqrt(x)

DescriptionGiven two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally identical and the nodes have the same value. The o
7月 9 2015
#leetcode

LeetCode Pascal's Triangle

DescriptionGiven numRows, generate the first numRows of Pascal’s triangle. For example, given numRows = 5,Return [ [1], [1,1], [1,2,1], [1,3,3,1], [1,4,6,4,1]] The original problem is here.
7月 8 2015
#leetcode

LeetCode Find Minimum In Rotated Sorted Array

DescriptionSuppose a sorted array is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2). Find the minimum element. You may assume no duplicate exists in
7月 8 2015
#leetcode
1…1516171819…26

搜索

Hexo Fluid
总访问量 次 总访客数 人