www

导航

2019年2月26日 #

二叉树中和为某一值的路径

摘要: public class Solution { ArrayList> res = new ArrayList(); ArrayList path = new ArrayList(); public ArrayList> FindPath(TreeNode root,int target) { if (root == null) { ... 阅读全文

posted @ 2019-02-26 22:59 www_practice 阅读(133) 评论(0) 推荐(0) 编辑

tcp面试题

摘要: 常见面试题【问题1】为什么连接的时候是三次握手,关闭的时候却是四次握手? 答:因为当Server端收到Client端的SYN连接请求报文后,可以直接发送SYN+ACK报文。其中ACK报文是用来应答的,SYN报文是用来同步的。但是关闭连接时,当Server端收到FIN报文时,很可能并不会立即关闭SOC 阅读全文

posted @ 2019-02-26 20:42 www_practice 阅读(467) 评论(0) 推荐(0) 编辑