Sliding window doesn't work. So it is a typical partial_sum base solution. As below. However if you use a balanced binary search tree, you can get O(n...
分类:
其他好文 时间:
2015-10-19 07:09:26
阅读次数:
1302
QUESTION NO: 493
You decided to use Direct NFS configuration in a non-RAC Oracle installation and created the oranfstab file in
/etc. Which two statements are true regarding this oranfstab file? (Cho...
分类:
其他好文 时间:
2015-10-18 23:18:26
阅读次数:
434
题目连接http://acm.hdu.edu.cn/showproblem.php?pid=2660Accepted NecklaceDescriptionI have N precious stones, and plan to use K of them to make a necklace f...
分类:
其他好文 时间:
2015-10-18 15:30:49
阅读次数:
199
命令行操作(mysql.exe)0、登录 : mysql -u root -p 1、显示数据库列表: show databases; 2、选择数据库: use 库名;3、显示数据表列表 show tables;4、显示数据表的结构: desc 表名;5、建库: create database 库名 ...
分类:
数据库 时间:
2015-10-18 11:15:56
阅读次数:
353
1 Use HelloWorldDB 2 go 3 4 SET NOCOUNT ON 5 DECLARE @conversationHandle uniqueidentifier 6 7 Begin Transaction 8 -- 开始 Hello World 服务的对话 9 10 BEGI...
分类:
其他好文 时间:
2015-10-18 01:15:28
阅读次数:
226
MapKitMapKit框架的使用nMapKit框架使用前提p导入框架pp导入主头文件#import MapKit框架使用须知pMapKit框架中所有数据类型的前缀都是MKpMapKit有一个比较重要的UI控件 :MKMapView,专门用于地图显示跟踪显示用户的位置n设置MKMapView的use...
分类:
其他好文 时间:
2015-10-18 01:12:56
阅读次数:
295
于以前的博文于,有介绍切割消息换行的方法。但是有一个小问题,这样的方法,设消息中本身就包括换行符,那将会将这条消息切割成两条。结果就不正确了。本文介绍第二种消息切割方式,即上一篇博文中讲的第2条:use a fixed length header that indicates the length ...
分类:
Web程序 时间:
2015-10-17 20:45:45
阅读次数:
186
主键是一个约束(constraint),他依附在一个索引上,这个索引可以是聚集索引,也可以是非聚集索引。所以在一个(或一组)字段上有主键,只能说明他上面有个索引,但不一定就是聚集索引。例如下面: 1 USE [pratice] 2 GO 3 CREATE TABLE #tempPKCL 4 ( 5....
分类:
数据库 时间:
2015-10-17 19:13:38
阅读次数:
221
最近做项目的时候,tableView的headerView用xib做了自定义类,然后在xib中把backgroundcolor直接改成了white,然后就一直提示这段代码。把xib中的把backgroundcolor改成default就不会有提示了。如果想设置背景颜色...
分类:
其他好文 时间:
2015-10-17 17:56:00
阅读次数:
123
题目:
Given a linked list, swap every two adjacent nodes and return its head.
For example,
Given 1->2->3->4, you should return the list as 2->1->4->3.
Your algorithm should use only constant...
分类:
其他好文 时间:
2015-10-17 12:16:08
阅读次数:
179