1.建立一个连接需要三次握手:位码即tcp标志位,有6种标示:SYN(synchronous建立联机)
ACK(acknowledgement 确认) PSH(push传送) FIN(finish结束) RST(reset重置)
URG(urgent紧急)Sequence number(顺序号码) ...
分类:
其他好文 时间:
2014-05-29 04:17:13
阅读次数:
354
DescriptionYou are given a sequence
ofnintegersa1, a2, ... , anin non-decreasing order. In addition to that, you are
given several queries consisting ...
分类:
其他好文 时间:
2014-05-28 03:20:48
阅读次数:
302
题意:给定p数组 让求w数组 p数组;S (((()()()))) P-sequence 4 5
6666//)括号 左边(括号的个数 W-sequence 1 1 1456//)括号所匹配的括号中的括号对数用一个栈来模拟#includeusing
namespac...
分类:
其他好文 时间:
2014-05-28 00:46:16
阅读次数:
187
DescriptionGiven m sequences, each contains n
non-negative integer. Now we may select one number from each sequence to form a
sequence with m integers...
分类:
其他好文 时间:
2014-05-28 00:05:22
阅读次数:
298
題目鏈接題意 : 將幾個片段如圖所示方法縮成一個序列,求出最短這個序列。思路 :
其實我也不知道怎麼做。。。。。看網上都用了DP。。。。。但是我不會。。。。。這個DP不錯,還有用KMP+状压DP做的 1 //1699 2 #include 3
#include 4 #include 5 #in...
分类:
其他好文 时间:
2014-05-27 16:06:19
阅读次数:
282
code如下:
//Longest common sequence, dynamic programming method
void FindLCS(char *str1, char *str2)
{
if(str1 == NULL || str2 == NULL)
return;
int length1 = strlen(str1)+1;
int length2 = strlen(...
分类:
其他好文 时间:
2014-05-26 04:56:50
阅读次数:
215
刚打开游标的时候,是位于一个空行,要用fetch into
才能到第一行。只是要注意用更新游标的时候,不能在游标期间commit. 否则会报ORA-01002: fetch out of
sequence就是COMMIT导致的错误。在打开有for update的cursor时,系统会给取出的数据加上...
分类:
数据库 时间:
2014-05-26 01:07:05
阅读次数:
405
Graphic SequenceA graphic sequence is a
sequence of numbers which can be thedegree sequenceof somegraph. A sequence can
be checked to determine if it ...
分类:
其他好文 时间:
2014-05-25 19:18:00
阅读次数:
331
【题目】
Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string.
If the last word does not exist, return 0.
Note: A word is defined as a character sequence consists of non-space ...
分类:
其他好文 时间:
2014-05-25 07:39:05
阅读次数:
256
【题目】
The set [1,2,3,…,n] contains a total of n! unique permutations.
By listing and labeling all of the permutations in order,
We get the following sequence (ie, for n = 3):
"123"
"132"
"213"
"231"
"312"
"321"
Given n and k, return the kth permutation ...
分类:
其他好文 时间:
2014-05-25 06:13:37
阅读次数:
276