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-10-31 07:23:56
阅读次数:
142
Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at most one transaction ...
分类:
其他好文 时间:
2016-10-31 07:22:48
阅读次数:
156
// 万物皆对象 var num = 123456.789; console.log(num.toFixed(2)); console.log(num.toExponential()) console.log(num.toPrecision(2)); console.log((1.2345).toF ...
分类:
Web程序 时间:
2016-10-31 07:11:33
阅读次数:
178
欢迎探讨,如有错误敬请指正 如需转载,请注明出处http://www.cnblogs.com/nullzx/ 1. 简易版本TimSort排序算法原理与实现 TimSort排序算法是Python和Java针对对象数组的默认排序算法。TimSort排序算法的本质是归并排序算法,只是在归并排序算法上进行... ...
分类:
编程语言 时间:
2016-10-31 07:02:35
阅读次数:
190
解决方案: 在Maven的pom文件中引发如下依赖jar: <dependency> <groupId>javax.servlet.jsp</groupId> <artifactId>jsp-api</artifactId> <version>2.2.1-b03</version> </depend ...
分类:
编程语言 时间:
2016-10-31 06:52:07
阅读次数:
184
Description Astronomers often examine star maps where stars are represented by points on a plane and each star has Cartesian coordinates. Let the leve ...
分类:
编程语言 时间:
2016-10-30 19:30:28
阅读次数:
236
论如何在CTF比赛中搅屎 0×00 前言 不能搅屎的CTF不是好CTF,不能搅屎的题目不是好题目。 我很赞成phithon神的一句话,“比赛就是和他人竞争的过程,通过各种手段阻止对手拿分我觉得也是一种能力。” 你能够做到别人做不到的,那就是你的本事。 本文所说的搅屎是在GETSHELL的情况下才能进 ...
分类:
其他好文 时间:
2016-10-30 17:08:44
阅读次数:
6546
Theorem Let $\mu$ be a finite Borel measure on $R$, then $$\lim\limits_{T\to \infty}\frac{1}{2T}\int_{-T}^T|\widehat{\mu}(\xi)|^2d\xi=\sum_{x\in R}\mu ...
分类:
其他好文 时间:
2016-10-30 13:49:44
阅读次数:
130