- 博客(5)
- 收藏
- 关注
原创 [LeetCode 107]Binary Tree Level Order Traversal II(递归法)
题目内容107 Binary Tree Level Order Traversal II Given a binary tree, return the bottom-up level order traversal of its nodes’ values. (ie, from left to right, level by level from leaf to root). For exa
2016-07-24 17:39:08 805
原创 [LeetCode 198] House Robber(动态规划)
题目内容 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 robbing each of t
2016-07-22 18:05:01 221
原创 [LeetCode 121]Best Time to Buy and Sell Stock(动态规划)
题目内容 121 Best Time to Buy and Sell Stock Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at most one transact
2016-07-19 22:38:08 453
原创 [LeetCode 206] Reverse Linked List(迭代法)
题目内容 206.Reverse Linked List Reverse a singly linked list.题目来源代码示例//Reverse with iterationListNode* reverseList(ListNode* head) { ListNode* p=head; ListNode* q=NULL;
2016-07-08 23:40:04 385
原创 [LeetCode 169]Majority Element: Moore Voting Algorithm
问题来源**>169.Majority Element Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times. You may assume that the array is non-empt
2016-07-08 21:42:59 228
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人