A man can fail many times, but he isn't a failure until he begins to blame somebody else.—— J. Burroughs一个人可以失败许多次,但是只要他没有开始责怪别人,他还不是一个失败者。——巴勒斯
分类:
其他好文 时间:
2014-07-16 23:20:38
阅读次数:
203
>>> import psutil获取cpu信息>>> psutil.cpu_times()scputimes(user=128258.38, nice=12.29, system=88369.31, idle=6713420.33, iowait=3290.63, irq=1069.04, sof...
分类:
编程语言 时间:
2014-07-16 23:11:20
阅读次数:
365
$$\bex \n\cdot{\bf b}=0\ra \n\times [(\n\times {\bf b})\times {\bf b}]=\n\times [\n\cdot ({\bf b}\otimes {\bf b})]. \eex$$证明: 右端第一个分量为 $$\beex \bea &\...
分类:
其他好文 时间:
2014-06-27 22:23:57
阅读次数:
253
这节主要是回顾了下线性代数的一些简单知识。## 矩阵与向量-------### 矩阵由$m\times n$个数$a _{ij}(i=1,2,...,m;j=1,2,...,n)$排成的$m$行$n$列的数表,称为$m$行$n$列的矩阵,简称$m\times n$矩阵,记作:$$\matrix{A}...
分类:
其他好文 时间:
2014-06-27 18:45:29
阅读次数:
161
$$\bex \n\times({\bf a}\times{\bf b})=({\bf b}\cdot\n){\bf a} -({\bf a}\cdot\n){\bf b}+{\bf a}(\n\cdot{\bf b})-{\bf b}(\n\cdot{\bf a}). \eex$$ see [李大...
分类:
其他好文 时间:
2014-06-27 11:02:24
阅读次数:
198
检测元素出现方法。虽然是基于 jQuery 的,但是代码很简洁,可以修改成纯js版的。文本jQuery.fn.wait = function (func, times, interval) { var _times = times || -1, //100次 _interval = in...
分类:
Web程序 时间:
2014-06-26 20:49:39
阅读次数:
340
原题:
钱币兑换问题
Time Limit : 2000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other)
Total Submission(s) : 2 Accepted Submission(s) : 2
Font: Times New Roman | Verdana | Georgia
Fo...
分类:
其他好文 时间:
2014-06-25 08:35:15
阅读次数:
174
【题目】
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 as many transactions as you like (ie, buy one and sell one share of the stock multiple times). H...
分类:
其他好文 时间:
2014-06-24 19:40:53
阅读次数:
240
Given an array of integers, every element appears three times except for one. Find that single one.
Note:
Your algorithm should have a linear runtime complexity. Could you implement it without u...
分类:
其他好文 时间:
2014-06-24 15:52:58
阅读次数:
222
Problem DescriptionSome days ago, I learned the concept of LCM (least common multiple). I've played with it for several times and I want to make a big...
分类:
其他好文 时间:
2014-06-24 15:01:58
阅读次数:
168