Plus OneGiven a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant dig...
分类:
编程语言 时间:
2015-06-14 06:58:52
阅读次数:
166
早期的文章中,曾经提到过性能调优中的DETECT方法论,这里先简单回顾一下DETECT方法论。Discover the problem :发现问题Explore the conditions:探究原因Track down possible approaches:提供可能解决的方式Execute the most likely approach:执行最好可能的解决方式Check of success...
分类:
数据库 时间:
2015-06-13 12:56:09
阅读次数:
149
有时需要在putty这种图形终端开放的图形化管理工具将出现以下错误:[root@node2 ~]# Traceback (most recent call last):File "/usr/share/virt-manager/virt-manager.py", line 383, in main(...
分类:
其他好文 时间:
2015-06-13 08:37:13
阅读次数:
281
Problem Description:Given a string, find the length of the longest substring T that contains at most 2 distinct characters.For example, Given s =“eceb...
分类:
其他好文 时间:
2015-06-12 22:04:43
阅读次数:
103
From a practical point to most people, <? extends Object> is the same as <?>, like everyone have suggested here. However, they differ in two very minor and subtle points: The JVMS (Java Virtual Mac...
分类:
其他好文 时间:
2015-06-12 17:36:23
阅读次数:
228
No.66 Plus OneGiven a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significa...
分类:
其他好文 时间:
2015-06-11 22:52:05
阅读次数:
144
我在研究这个函数代码的过程中,老师搞不清楚这个函数的MT的含义,困扰了我很长时间。一开始我猜测是most threshold,或者是其他的几个,以为是错误的,我就不说了。最后终于搞清楚了--------cvCreateMTStumpClassifier函数(这是一个生成多阈值(Multi-threshold)stump分类器的函数)。...
分类:
其他好文 时间:
2015-06-11 19:26:52
阅读次数:
119
The Single Responsibility PrincipleRobert C. Martin (Uncle Bob)ONE OF THE MOST FOUNDATIONAL PRINCIPLES OF GOOD DESIGN IS:
Gather together those things that change for the same reason, and separate tho...
分类:
其他好文 时间:
2015-06-11 09:26:36
阅读次数:
115
在Python中,round函数对小数进行四舍五入的截断。然而:>>> round(3.55, 1)3.5官方文档对于函数的解释是:Unfortunately, most decimal fractions cannot be represented exactly as binary fracti...
分类:
编程语言 时间:
2015-06-11 06:54:56
阅读次数:
326
很多时候会出现把一个N*M的矩阵做pca(对M降维)之后却得到一个M*(M-1)矩阵这样的结果。之前都是数学推导得到这个结论,但是,今天看到一个很形象的解释:Consider what PCA does. Put simply, PCA (as most typically run) creates...
分类:
其他好文 时间:
2015-06-10 23:47:31
阅读次数:
207