
LeetCode 算法实战
文章平均质量分 70
www.leetcode.com是一个不错的算法演练网站,其中有很多都是经典的名企面试题,在此想记录一下自己的学习过程以及解题过程和大家一起探讨、提升。
FightForProgrammer
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
LeetCode Course Schedule
LeetCode Course ScheduleThere are a total of n courses you have to take, labeled from 0 to n - 1.Some courses may have prerequisites, for example to take course 0 you have to first take co原创 2015-05-31 10:41:54 · 1160 阅读 · 0 评论 -
LeetCode Word Search II
LeetCode Word Search IIGiven a 2D board and a list of words from the dictionary, find all words in the board.Each word must be constructed from letters of sequentially adjacent cell, where "原创 2015-05-28 14:37:06 · 1203 阅读 · 0 评论 -
LeetCode Minimum Size Subarray Sum
LeetCode Minimum Size Subarray SumGiven an array of n positive integers and a positive integer s, find the minimal length of a subarray of which the sum ≥ s. If there isn't one, return 0 inste原创 2015-05-16 22:03:16 · 909 阅读 · 0 评论 -
LeetCode LRU Cache
LeetCode LRU CacheDesign and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set.get(key) - Get the value (will always be原创 2015-05-15 15:52:09 · 740 阅读 · 0 评论 -
LeetCode House Robber
LeetCode House RobberYou 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原创 2015-05-10 17:08:03 · 801 阅读 · 0 评论 -
LeetCode:Construct Binary Tree from Preorder and Inorder Traversal
Construct Binary Tree from Preorder and Inorder TraversalGiven preorder and inorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the t原创 2015-03-29 08:58:14 · 999 阅读 · 0 评论 -
Binary Tree Maximum Path Sum
LeetCode :Binary Tree Maximum Path SumGiven a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the below binary tree,原创 2015-03-27 15:21:35 · 922 阅读 · 0 评论