摘要: 160. Intersection of Two Linked Lists Write a program to find the node at which the intersection of two singly linked lists begins. For example, the f 阅读全文
posted @ 2018-01-03 22:12 link98 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 这几天看了《算法图解》,把里面的示例代码都实现了一边,在 github 上找到了一位朋友的仓库,fork 了他的。 里面有我们添加的 Python,Java,C++的实现,欢迎大家 fork!!! 附上网址:https://github.com/lynxux/AlgorithmDiagram 阅读全文
posted @ 2018-01-03 22:10 link98 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 142. Linked List Cycle II Given a linked list, return the node where the cycle begins. If there is no cycle, return null. Note: Do not modify the link 阅读全文
posted @ 2018-01-03 22:09 link98 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 141. Linked List Cycle Given a linked list, determine if it has a cycle in it. Follow up: Can you solve it without using extra space? 题意: 判断一个链表是否为一个环 阅读全文
posted @ 2018-01-03 22:05 link98 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 287. Find the Duplicate NumberGiven an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least one... 阅读全文
posted @ 2017-12-27 22:17 link98 阅读(144) 评论(0) 推荐(0) 编辑
摘要: HTTP首部HTTP的首部字段根据实际使用用途分为四种:通用首部字段:请求和响应报文都会使用的首部请求首部字段:请求报文的首部响应首部字段:响应报文的首部实体首部字段:实体部分的首部通用首部字段: 首部字段名 说明 Cache-Control 控制缓存的行为 Connect... 阅读全文
posted @ 2017-12-25 19:55 link98 阅读(412) 评论(0) 推荐(0) 编辑
摘要: 752. Open the LockYou have a lock in front of you with 4 circular wheels. Each wheel has 10 slots: '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'. T... 阅读全文
posted @ 2017-12-25 12:31 link98 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 751. IP to CIDRGiven a start IP address ip and a number of ips we need to cover n, return a representation of the range as a list (of smallest possibl... 阅读全文
posted @ 2017-12-25 12:28 link98 阅读(420) 评论(0) 推荐(0) 编辑
摘要: 747. Largest Number Greater Than Twice of OthersIn a given integer array nums, there is always exactly one largest element.Find whether the largest el... 阅读全文
posted @ 2017-12-25 12:26 link98 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 565. Array NestingA zero-indexed array A of length N contains all integers from 0 to N-1. Find and return the longest length of set S, where S[i] = {A... 阅读全文
posted @ 2017-12-23 10:18 link98 阅读(149) 评论(0) 推荐(0) 编辑