单例模式目的:Ensure a class only has one instance, and provide a global point of access toit.保证一个类仅有一个实例,并提供一个访问它的全局访问点。C++实现在类中,定义一个私有静态成员对象;将构造函数也定义为私有的,保...
分类:
其他好文 时间:
2014-07-27 10:25:12
阅读次数:
235
Knight Moves
Description
Background
Mr Somurolov, fabulous chess-gamer indeed, asserts that no one else but him can move knights from one position to another so fast. Can you beat him?
The P...
分类:
其他好文 时间:
2014-07-26 17:23:32
阅读次数:
590
【Vertex Lit】 Vertex Lit path generally renders each object in one pass, with lighting from all lights calculated at object vertices. It's the fastes.....
分类:
其他好文 时间:
2014-07-26 17:06:21
阅读次数:
202
Say you have an array for which theithelement is the price of a given stock on dayi.If you were only permitted to complete at most one transaction (ie...
分类:
其他好文 时间:
2014-07-26 14:30:11
阅读次数:
156
题目:Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity.题解:Merge k sorted linked list就是merge 2 sorted li....
分类:
编程语言 时间:
2014-07-26 05:44:37
阅读次数:
304
TeXpen 现在支持多条命令流水执行了,但我本人仍然喜欢使用脚本来处理。 echo "texbuild - build your article in one command."
echo "version 0.1 (c) MengChang (Maxwell) Wang, 2014"
echo "at Nanyang Tech...
分类:
其他好文 时间:
2014-07-26 03:33:37
阅读次数:
194
在矩阵分解中, 有类问题比较常见,即矩阵的元素只有0和1, 对应实际应用中的场景是:用户对新闻的点击情况,对某些物品的购买情况等。基于graphchi里面的矩阵分解结果不太理想,调研了下相关的文献,代码主要实现了基于PLSA的分解方法,详细请参考后面的参考文献
#!/usr/local/bin/python
#-*-coding:utf-8-*-
import sys
import math...
分类:
其他好文 时间:
2014-07-26 02:11:06
阅读次数:
259
v$undostat视图没有按照每10分钟进行更新,v$undostat只有1行(one rows)...
分类:
其他好文 时间:
2014-07-26 01:59:56
阅读次数:
193
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 ...
分类:
其他好文 时间:
2014-07-26 01:23:26
阅读次数:
229
转自:http://ducquoc.wordpress.com/2010/11/06/eclipse-wtp-tomcat-hot-deploy/One of the reasons whyJavaEEdoes not have many succesful projects is that its...
分类:
系统相关 时间:
2014-07-25 13:55:11
阅读次数:
440