原文转自:http://blog.chinaunix.net/uid-20249205-id-1713871.html Kind Meaning Reference 0 End of Option List [RFC793] 1 No-Operation [RFC793] 2 Maximum Seg ...
分类:
其他好文 时间:
2016-05-07 12:56:21
阅读次数:
269
Maximum Depth of Binary Tree
Total Accepted: 142443 Total
Submissions: 297439 Difficulty: Easy
Given a binary tree, find its maximum depth.
The maximum depth is the number of nodes ...
分类:
其他好文 时间:
2016-05-07 11:24:32
阅读次数:
156
Problem:
Given a string S, find the longest palindromic substring in S. You may
assume that the maximum length of S is 1000, and there exists one
unique longest palindromic substring.
Analysis:...
分类:
其他好文 时间:
2016-05-07 08:41:06
阅读次数:
176
//the first k elements interviewed and rejected, //for the latter n-k elements ,if value >max,return value, else return n'elements. #include<stdio.h># ...
分类:
其他好文 时间:
2016-05-05 17:38:58
阅读次数:
107
Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longes ...
分类:
其他好文 时间:
2016-05-05 14:38:01
阅读次数:
123
Maximum Subarray: algorithm这个问题我们先看下问题的描述:问题描述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,?...
分类:
编程语言 时间:
2016-05-03 18:29:02
阅读次数:
228
# WinNT MPM # ThreadsPerChild: constant number of worker threads in the server process # MaxRequestsPerChild: maximum number of requests a server proc... ...
分类:
编程语言 时间:
2016-05-03 14:02:48
阅读次数:
415
传送门 318. Maximum Product of Word Lengths My Submissions QuestionEditorial Solution Total Accepted: 19855 Total Submissions: 50022 Difficulty: Medium G ...
分类:
其他好文 时间:
2016-05-02 18:31:35
阅读次数:
174
题目链接 题意:给定一个字符串,求重复次数最多的连续重复子串。 分析:(论文上的分析)先穷举长度 L,然后求长度为 L 的子串最多能连续出现几次。首先连续出现 1 次是肯定可以的,所以这里只考虑至少 2 次的情况。假设在原字符串中连续出 现 2 次,记这个子字符串为 S,那么 S 肯定包括了字符 r ...
分类:
编程语言 时间:
2016-05-01 14:53:00
阅读次数:
229
Given a positive integer n, break it into the sum of at least two positive integers and maximize the product of those integers. Return the maximum pro ...
分类:
其他好文 时间:
2016-05-01 09:52:50
阅读次数:
139