2014.5.27
reference: C++ primer 5th, $7.6:Static Class Members
TOPIC 1:一个类中的member(data member和function member)可以声明为static,需要申明为static的情况有一下原因:
1:使用的客观需要:需要某个member是associated with the class,not wi...
分类:
编程语言 时间:
2014-06-05 05:19:15
阅读次数:
263
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=2676
大致题意:给出一个带权无向图,每条边有一个边权wi,求将S和T分开的一个割边集C,使得该割边集的平均边权最小,即最小化∑wi / |C| 。
详见amber关于最小割模型的论文
思路:amber论文中详细讲解了如何转化成函数及建图,值得注...
分类:
Web程序 时间:
2014-06-04 21:40:43
阅读次数:
401
Description Resource
Path Location
Type
cvc-complex-type.2.4.a: Invalid content was found starting with element 'init-param'. One of '{"http://java.sun.com/xml/ns/javaee":enabled, "http://java.sun....
分类:
Web程序 时间:
2014-06-03 05:31:38
阅读次数:
514
There is no systematic design for shared resource access priority in platform side, and there is no interface provided by
platform that can be used by application to do bandwidth management optimizat...
分类:
其他好文 时间:
2014-06-03 04:54:35
阅读次数:
262
【题目】
Given a 2D board and a word, find if the word exists in the grid.
The word can be constructed from letters of sequentially adjacent cell, where "adjacent" cells are those horizontally or vertically neighboring. The same letter cell may not be use...
分类:
其他好文 时间:
2014-06-03 01:07:58
阅读次数:
329
今天看到下面这两个函数:struct resource
*platform_get_resource(struct platform_device *dev, unsigned int type, unsigned
int num){ int i; for (i = 0; i n...
分类:
系统相关 时间:
2014-06-02 22:15:28
阅读次数:
438
Given a stringS, find the longest palindromic
substring inS. You may assume that the maximum length ofSis 1000, and there
exists one unique longest pa...
分类:
编程语言 时间:
2014-06-02 09:22:03
阅读次数:
328
《GC资源管理器》
官方文档:administrator’s Guide->24 Using the Database Resource Manager
使用率:在实际生产环境中使用的比较少
作用:限制数据库资源的使用,CPU 内存 undo表空间 IO session
场合:当有多个应用使用一个数据库并且资源紧张时可用“资源管理器”调节
实现:可用GC完成也可用EM完成,还可...
分类:
数据库 时间:
2014-06-01 18:17:01
阅读次数:
417
title:
A Pythagorean triplet is a set of three natural numbers, a
b
c, for which,
a2 + b2 =
c2
For example, 32 + 42 = 9 + 16 = 25 = 52.
There exists exactly one Pythagorean triplet for wh...
分类:
其他好文 时间:
2014-06-01 09:17:53
阅读次数:
251
错误1 ——
Caused by: android.content.res.Resources$NotFoundException:
String resource ID #0x0
错误原因——...
分类:
移动开发 时间:
2014-05-31 21:39:18
阅读次数:
642