
LeetCode 算法实战
文章平均质量分 70
www.leetcode.com是一个不错的算法演练网站,其中有很多都是经典的名企面试题,在此想记录一下自己的学习过程以及解题过程和大家一起探讨、提升。
FightForProgrammer
这个作者很懒,什么都没留下…
展开
-
LeetCode Course Schedule
LeetCode Course Schedule There 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 · 1158 阅读 · 0 评论 -
LeetCode Word Search II
LeetCode Word Search II Given 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 · 1200 阅读 · 0 评论 -
LeetCode Minimum Size Subarray Sum
LeetCode Minimum Size Subarray Sum Given 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 · 899 阅读 · 0 评论 -
LeetCode LRU Cache
LeetCode LRU Cache Design 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 · 738 阅读 · 0 评论 -
LeetCode House Robber
LeetCode 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原创 2015-05-10 17:08:03 · 797 阅读 · 0 评论 -
LeetCode:Construct Binary Tree from Preorder and Inorder Traversal
Construct Binary Tree from Preorder and Inorder Traversal Given 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 · 993 阅读 · 0 评论 -
Binary Tree Maximum Path Sum
LeetCode :Binary Tree Maximum Path Sum Given 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 · 916 阅读 · 0 评论