ADO.NET 1.x利用SqlDataReader读取数据,针对每个结果集需要一个独立的连接。当然,你还必须管理这些连接并且要付出相应的内存和潜在的应用程序中的高度拥挤的瓶颈代价-特别是在数据集中的Web应用程序中。 ADO.NET 2.的一个新特征多数据结果集(Multiple Active ....
分类:
数据库 时间:
2015-04-03 12:57:00
阅读次数:
197
题意 给你一个数n 输出一个仅由0,1组成的数m使得m是n的倍数
找到一个m 是m%n==0 就行了 初始让m=1 然后bfs扩展m的位数 只有两种情况 m = m * 10 或 m = m*10 + 1;
同余模定理 (a+b) % c = (a%c + b%c) % c, (a*b)%c = (a%c * b%c) % c;
运用同余模定理 可以只记录余数 这...
分类:
其他好文 时间:
2015-04-01 21:50:47
阅读次数:
143
logstash中的类型
array
boolean
bytes
codec
hash
number
password
path
string
arrayAn array can be a single string value or multiple values. If you specify the same setting multiple times, it appends to the...
分类:
其他好文 时间:
2015-04-01 17:38:19
阅读次数:
161
http协议对mime类型有详细描述,multipart/....是单个消息头包含多个消息体的解决方案。multipart媒体类型对发送非文本的各媒体类型是有用的。目前常用的有这些subtype:Messages with multiple partsmultipart/mixedMessages ...
分类:
其他好文 时间:
2015-04-01 10:58:41
阅读次数:
131
题目:
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.
If the number of nodes is not a multiple of k then left-out nodes in the end should remain...
分类:
其他好文 时间:
2015-03-31 18:02:00
阅读次数:
114
原文地址:http://blog.csdn.net/imlmy/article/details/8268293在别的机子上创建一个maven工程,复制到本机上导入,出现pom.xml文件错误,提示错误如下Multiple annotations found at this line:- Execut...
分类:
Web程序 时间:
2015-03-30 12:53:42
阅读次数:
259
题目:
A peak element is an element that is greater than its neighbors.Given an input array where num[i] ≠ num[i+1], find a peak element and return its index.The array may contain multiple peaks, in that...
分类:
其他好文 时间:
2015-03-30 01:42:48
阅读次数:
149
android----问题解决Dex Loader] Unable to execute dex: Multiple dex files define Lcom/sina/sso/RemoteSSO;1.遇到的问题:Unable to execute dex: Multiple dex files ...
分类:
其他好文 时间:
2015-03-28 13:01:12
阅读次数:
188
DescriptionGiven a positive integer n, write a program to find out a nonzero multiple m of n whose decimal representation contains only the digits 0 a...
分类:
其他好文 时间:
2015-03-21 21:14:06
阅读次数:
141
In the previous example we used explicit locking with mutexes to synchronize access to shared state across multiple goroutines. Another option is to u...
分类:
其他好文 时间:
2015-03-20 16:06:28
阅读次数:
181