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 complete at most two transactions.
Note:
You may ...
分类:
其他好文 时间:
2014-12-20 18:20:25
阅读次数:
128
如何理解Android架构设计的初心并开发出搭载Android系统并且具备深度定制和软硬整合能力特色产品,是本课程解决的问题。课程以Android的五大核心:HAL、Binder、NativeService、AndroidService(并以AMS和WMS为例)、ViewSystem为主轴,一次性彻...
分类:
移动开发 时间:
2014-12-20 02:06:14
阅读次数:
249
如何理解Android架构设计的初心并开发出搭载Android系统并且具备深度定制和软硬整合能力特色产品,是本课程解决的问题。课程以Android的五大核心:HAL、Binder、NativeService、AndroidService(并以AMS和WMS为例)、ViewSystem为主轴,一次性彻...
分类:
移动开发 时间:
2014-12-20 02:00:51
阅读次数:
304
1 #include 2 #include 3 using namespace std; 4 int main() 5 { 6 int n; 7 char s1[2020],s2[2020]; 8 scanf("%d",&n); 9 for (int i=0;is1...
分类:
其他好文 时间:
2014-12-20 00:39:38
阅读次数:
285
In which scenarios would you rebuild an index? (Choose all that a
pply.)
A. when you need to disable the index usage
B. when you need to change storage options
C. when you ne...
分类:
数据库 时间:
2014-12-19 23:31:28
阅读次数:
367
Valgrind的主要作者Julian Seward刚获得了今年的Google-O‘Reilly开源大奖之一──Best Tool Maker。让我们一起来看一下他的作品。Valgrind是运行在Linux上一套基于仿真技术的程序调试和分析工具,它包含一个内核─...
分类:
其他好文 时间:
2014-12-19 16:00:26
阅读次数:
143
Yahoo Web优化建议原文:Best Practices for Speeding Up Your Web Site Web应用性能优化黄金法则:先优化前端程序(front-end)的性能,因为这是80%或以上的最终用户响应时间的花费所在。 法则1. 减少HTTP请求次数 80%的最终用户响应时...
分类:
Web程序 时间:
2014-12-18 16:30:28
阅读次数:
263
函数式编程语言
http://program-think.blogspot.com/2012/02/why-choose-python-4-fp.html
纯函数:输出完全依赖输入的函数,不能读写外部变量、没有IO
Python中的相关内置函数:
1. map(函数,迭代器)
将迭代器中的所有内容依次传递给函数,并返回一个迭代器
可以是list...
...
分类:
编程语言 时间:
2014-12-18 12:03:36
阅读次数:
191
Exercise 3-1. Write a program that will first allow a user to choose one of two options:1. Convert a temperature from degrees Celsius to degrees Fahr....
分类:
其他好文 时间:
2014-12-17 17:44:05
阅读次数:
235
1.html中静态值htmljs $(document).ready(function() { $("#e1").select2({ placeholder: "Choose a person", width:"20...
分类:
其他好文 时间:
2014-12-16 11:41:31
阅读次数:
416