if (Directory.Exists(path)) { string[] name = Directory.GetFiles(path); foreach (string item in name) { ...
分类:
其他好文 时间:
2014-06-27 18:44:08
阅读次数:
196
HA Resource:资源FailOver:故障转移FailBack:故障转回资源粘性:资源是否倾向于留在当前节点Messaging Layer:集群服务信息层,基于UDP互相传递心跳信息,集群事务信息等 heartbeat(v1,v2,v3) heartbeat v3:heartbeat...
分类:
其他好文 时间:
2014-06-27 18:18:52
阅读次数:
195
题目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 "adja...
分类:
其他好文 时间:
2014-06-27 17:25:52
阅读次数:
225
中文乱码:在以后学习过程中全部采用UTF-81、文件的乱码1.1、项目文本文件默认编码: 【右击项目】->【Properties】->【Resource】->【Text file encoding】1.2、文件默认编码:默认使用项目的默认编码 【右击文件】->【Properties】->【Reso....
分类:
编程语言 时间:
2014-06-27 16:21:08
阅读次数:
219
SQL查询语句行转列横向显示2011-03-15 10:00:14|分类: sql |标签:resource |举报 |字号大中小订阅 在SQL查询语句行转列横向显示中access中没有CASE,要用IIF代替select iif(sex= '1 ', '男 ', '女 ') from tablen...
分类:
数据库 时间:
2014-06-27 15:32:03
阅读次数:
427
Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longes...
分类:
其他好文 时间:
2014-06-27 12:46:45
阅读次数:
238
DELIMITER $$ #改动分隔符为 $$DROP PROCEDURE IF EXISTS sp_MvcCommonDataSource$$ #分隔符CREATE PROCEDURE sp_MvcCommonDataSource ( #输入參数 _fields VARCHAR(2000), #要...
分类:
数据库 时间:
2014-06-26 23:43:36
阅读次数:
309
Oracle查询优化中使用EXISTS可以比使用IN更加速度,当然这只能是在只有一个IN 的情况下,一般有多个IN的情况下,不能将所有的IN都换成EXISTS,道理我也不清楚,我只是根据实际情况的出来的结论。采用EXISTS+IN的模式:SELECT * FROM EXP_REPORT_HEADE....
分类:
数据库 时间:
2014-06-26 19:20:58
阅读次数:
258
动态规划0-1背包问题Ø 问题描写叙述: 给定n种物品和一背包。物品i的重量是wi,其价值为vi,背包的容量为C。问应怎样选择装入背包的物品,使得装入背包中物品的总价值最大?Ø 对于一种物品,要么装入背包,要么不装。所以对于一种物品的装入状态能够取0和1.我们设物品i的装入状态为xi,xi∈ (0....
分类:
其他好文 时间:
2014-06-26 17:23:41
阅读次数:
251
题目
Given a string S,
find the longest palindromic substring in S.
You may assume that the maximum length of S is
1000, and there exists one unique longest palindromic substring.
方法
...
分类:
其他好文 时间:
2014-06-24 19:36:55
阅读次数:
212