
OJ-DP
文章平均质量分 70
Morrisss_
做更好地自己。
展开
-
LeetCode OJ-198. House Robber
198. 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 them原创 2016-08-08 15:36:38 · 483 阅读 · 0 评论 -
hdu-1003 Max Sum(DP解法)
hdu-1003 Max Sum(DP解法)题目 Max Sum Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 221326 Accepted Submission(s): 52044 Problem原创 2016-09-29 17:26:14 · 571 阅读 · 0 评论 -
LeetCode OJ-5.Longest Palindromic Substring(最长回文子串)
LeetCode OJ-5. Longest Palindromic Substring(最长回文子串)题目描述 Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example: Input:原创 2016-12-27 14:31:38 · 471 阅读 · 0 评论 -
LeetCode OJ-53.Maximum Subarray(最大连续子数组和)
LeetCode OJ-53.Maximum Subarray(最大连续子数组和)题目描述 Find 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,原创 2017-01-07 11:29:27 · 1231 阅读 · 0 评论 -
LeetCode OJ-62. Unique Paths(DP)
LeetCode OJ-62. Unique Paths(DP)题目描述 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 any point in原创 2017-01-12 12:32:18 · 536 阅读 · 0 评论 -
LeetCode OJ-64.Minimum Path Sum(DP)
LeetCode OJ-64.Minimum Path Sum(DP)题目描述 Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path. Note原创 2017-01-13 12:00:58 · 431 阅读 · 0 评论