摘要: 一、三次握手 (1) 客户端发出请求连接报文段,其中报头控制位 SYN=1,初始序号 seq=x。客户端进入 SYN-SENT(同步已发送)状态。 (2) 服务端收到请求报文段后,向客户端发送确认报文段。确认报文段的首部中 SYN=1,ACK=1,确认号是 ack=x+1,同时为自己选择一个初始序号 阅读全文
posted @ 2018-03-15 14:58 Zzz...y 阅读(465) 评论(0) 推荐(0) 编辑
摘要: Given a directed, acyclic graph of N nodes. Find all possible paths from node 0 to node N-1, and return them in any order. The graph is given as follo 阅读全文
posted @ 2018-03-12 20:19 Zzz...y 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 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 a 阅读全文
posted @ 2018-03-07 21:45 Zzz...y 阅读(113) 评论(0) 推荐(0) 编辑
摘要: In a forest, each rabbit has some color. Some subset of rabbits (possibly all of them) tell you how many other rabbits have the same color as them. Th 阅读全文
posted @ 2018-03-02 19:45 Zzz...y 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 1、int类型默认signed,最高位是符号位,表示范围[-2^(n-1), 2^(n-1)-1],1byte=8bits 2、unsigned int,[0, 2^n-1] 阅读全文
posted @ 2018-03-01 13:20 Zzz...y 阅读(221) 评论(0) 推荐(0) 编辑
摘要: Given a singly linked list, group all odd nodes together followed by the even nodes. Please note here we are talking about the node number and not the 阅读全文
posted @ 2018-02-27 21:12 Zzz...y 阅读(150) 评论(0) 推荐(0) 编辑
摘要: S and T are strings composed of lowercase letters. In S, no letter occurs more than once. S was sorted in some custom order previously. We want to per 阅读全文
posted @ 2018-02-26 20:37 Zzz...y 阅读(236) 评论(0) 推荐(0) 编辑
摘要: Given a string S, we can transform every letter individually to be lowercase or uppercase to create another string. Return a list of all possible stri 阅读全文
posted @ 2018-02-21 21:14 Zzz...y 阅读(372) 评论(0) 推荐(0) 编辑
摘要: Given a Binary Search Tree (BST) with the root node root, return the minimum difference between the values of any two different nodes in the tree. Exa 阅读全文
posted @ 2018-02-11 22:42 Zzz...y 阅读(191) 评论(0) 推荐(0) 编辑
摘要: You need to construct a string consists of parenthesis and integers from a binary tree with the preorder traversing way. The null node needs to be rep 阅读全文
posted @ 2018-02-10 22:49 Zzz...y 阅读(125) 评论(0) 推荐(0) 编辑