这里以“TCP协议中的三次握手”来讲一下Markdown编辑器中UML序列图的应用。连接建立的过程: ```sequence
Title:连接建立的过程
客户主机->服务器主机: 连接请求(SYN=1,seq=client_isn)
服务器主机->客户主机: 授予连接(SYN=1,seq=client_isn)\n ack=client_isn+1
客户主机->服务器主机: 确认(SYN=0,se...
分类:
其他好文 时间:
2015-03-15 09:25:16
阅读次数:
220
题目链接:Permutation Sequence
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):
...
分类:
其他好文 时间:
2015-03-15 00:54:34
阅读次数:
150
转载请注明出处:http://www.cnblogs.com/fraud/ ——by fraudDNA SequenceTime Limit: 1000MSMemory Limit: 65536KDescriptionIt's well known that DNA Sequence is a se...
分类:
其他好文 时间:
2015-03-15 00:37:31
阅读次数:
184
转载请注明出处:http://www.cnblogs.com/fraud/ ——by fraudSequenceTime Limit: 5000MSMemory Limit: 65536KCase Time Limit: 2000MSDescriptionGiven a sequence, {A1,...
分类:
编程语言 时间:
2015-03-14 23:07:53
阅读次数:
224
https://leetcode.com/problems/count-and-say/The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1i...
分类:
其他好文 时间:
2015-03-14 21:32:06
阅读次数:
140
统计有几个'?',然后二分检测取满足条件的最小的数就可以了. 注意没有问号的时候也要检测一下.......
分类:
其他好文 时间:
2015-03-14 13:56:25
阅读次数:
163
Problem Description
A sequence Sn is defined as:Where a, b, n, m are positive integers.┌x┐is the ceil of x. For example, ┌3.14┐=4. You are to calculate Sn.
You, a top coder, say: So easy!Input...
分类:
其他好文 时间:
2015-03-14 12:31:58
阅读次数:
130
sort3解题报告—— icedream61 博客园(转载请注明出处)--------------------------------------------------------------------------------------------------------------...
分类:
其他好文 时间:
2015-03-14 10:55:56
阅读次数:
119
Given a sequence of positive integers and another positive integer p. The sequence is said to be a "perfect sequence" if M 2 #include 3 #include 4 ...
分类:
其他好文 时间:
2015-03-14 07:24:21
阅读次数:
160
Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words.
For example, given
s = "leetcode",
dict = ["leet"...
分类:
其他好文 时间:
2015-03-13 23:53:03
阅读次数:
403