Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may comple ...
分类:
编程语言 时间:
2016-06-21 15:35:52
阅读次数:
151
运行mvn package,报错: 解决方法: alter jvm.config in .mvn directory ( it is in controller directory ). study mvn.sh that comes with maven. you will see MAVEN_O ...
分类:
其他好文 时间:
2016-06-21 10:35:08
阅读次数:
218
集合类源码剖析hashmap初始化
默认容量DEFAULT_INITIAL_CAPACITY是16
默认负载因子DEFAULT_LOAD_FACTOR是0.75
若指定初始容量initialCapacity,如果大于MAXIMUM_CAPACITY,会重置为MAXIMUM_CAPACITY,最终的容量一般不等于initialCapacity,因为hashmap的容量一定是2的幂int capacit...
分类:
编程语言 时间:
2016-06-21 07:32:30
阅读次数:
173
PRML Study Note - Chapter 1 Summary : MLE (Maximum-likelihood Estimate) and Bayesian Approach ...
分类:
移动开发 时间:
2016-06-21 06:27:19
阅读次数:
269
题目: 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 farthe ...
分类:
其他好文 时间:
2016-06-19 01:16:46
阅读次数:
158
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