摘要: 1. 给定一个数组,求最大的连续子序列和,O(n)时间与O(1)空间 2. 有一个坐标轴,上面有很多点,每个点有坐标,求长度为L的绳子最多能够覆盖几个点。 两个指针,start,end。 如果points[front]-points[rear]<=L,头start向前移动一步。 如果points[f 阅读全文
posted @ 2017-10-18 20:29 爱简单的Paul 阅读(989) 评论(0) 推荐(0) 编辑
摘要: 作者:奔跑吧牛客链接:https://www.nowcoder.com/discuss/1937来源:牛客网可以参考的文章 OSI,TCP/IP,五层协议的体系结构,以及各层协议 OSI分层 (7层):物理层、数据链路层、网络层、传输层、会话层、表示层、应用层。 OSI,TCP/IP,五层协议的体系 阅读全文
posted @ 2017-10-18 16:43 爱简单的Paul 阅读(7550) 评论(0) 推荐(0) 编辑
摘要: Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2). Find 阅读全文
posted @ 2017-10-18 11:19 爱简单的Paul 阅读(143) 评论(0) 推荐(0) 编辑