1. 问题描述 Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the far ...
分类:
其他好文 时间:
2016-06-18 20:01:22
阅读次数:
324
暴力可过。。。 重新看了下快速选择。。 1 #include<cstdio> 2 #include<iostream> 3 #include<cstring> 4 #include<algorithm> 5 #include<cstdlib> 6 using namespace std; 7 con ...
分类:
其他好文 时间:
2016-06-18 18:39:01
阅读次数:
180
Given two arrays of length m and n with digits 0-9 representing two numbers. Create the maximum number of length k <= m + n from digits of the two. Th ...
分类:
其他好文 时间:
2016-06-17 00:31:43
阅读次数:
218
What is iPerf / iPerf3 ? iPerf3 is a tool for active measurements of the maximum achievable bandwidth on IP networks. It supports tuning of various pa ...
分类:
Web程序 时间:
2016-06-16 17:38:38
阅读次数:
632
Given an integer array with no duplicates. A max tree building on this array is defined as follow: The root is the maximum number in the array The lef ...
分类:
其他好文 时间:
2016-06-15 23:46:56
阅读次数:
322
题目描述: Given an unsorted array of integers, find the length of longest increasing subsequence. For example, Given [10, 9, 2, 5, 3, 7, 101, 18], The lon ...
分类:
其他好文 时间:
2016-06-15 15:47:19
阅读次数:
126
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no" />是否允许缩放<meta name="apple-to ...
分类:
移动开发 时间:
2016-06-15 10:28:51
阅读次数:
157
题目描述: Find the contiguous subarray within an array (containing at least one number) which has the largest product. For example, given the array [2,3,- ...
分类:
其他好文 时间:
2016-06-14 17:32:36
阅读次数:
142
Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. /** * Definition for a point. * struct Point { * i ...
分类:
其他好文 时间:
2016-06-14 15:34:52
阅读次数:
134
https://leetcode.com/problems/maximum-subarray/ 题目大意:找出一个int型数组中连续的子串,使得在所有子串中该子串之和最大,求出和。例如:数组为[?2,1,?3,4,?1,2,1,?5,4],求得的子串为:[4,?1,2,1],得到的最大和为:6。 解 ...
分类:
其他好文 时间:
2016-06-14 11:35:30
阅读次数:
116