摘要:
Given a linked list, determine if it has a cycle in it. Follow up:Can you solve it without using extra space? 题目含义:判断一个列表是否有环路 思路:参考142. Linked List C 阅读全文
posted @ 2017-10-24 16:22
daniel456
阅读(137)
评论(0)
推荐(0)
摘要:
Given a string and a string dictionary, find the longest string in the dictionary that can be formed by deleting some characters of the given string. 阅读全文
posted @ 2017-10-24 16:17
daniel456
阅读(127)
评论(0)
推荐(0)
摘要:
Divide two integers without using multiplication, division and mod operator. If it is overflow, return MAX_INT. 题目含义:不要使用乘 除 取模,计算除法 方法一: 阅读全文
posted @ 2017-10-24 16:05
daniel456
阅读(140)
评论(0)
推荐(0)
摘要:
Implement pow(x, n). 题目含义:实现x的n次方 阅读全文
posted @ 2017-10-24 15:46
daniel456
阅读(120)
评论(0)
推荐(0)
摘要:
Follow up for H-Index: What if the citations array is sorted in ascending order? Could you optimize your algorithm? 题目含义:给定的数组是有序的,再次找h值 相关题目: 274. H- 阅读全文
posted @ 2017-10-24 15:43
daniel456
阅读(206)
评论(0)
推荐(0)
摘要:
Given a sorted array, two integers k and x, find the k closest elements to x in the array. The result should also be sorted in ascending order. If the 阅读全文
posted @ 2017-10-24 15:40
daniel456
阅读(374)
评论(0)
推荐(0)
摘要:
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in each row are sorted i 阅读全文
posted @ 2017-10-24 15:36
daniel456
阅读(128)
评论(0)
推荐(0)
摘要:
Given a set of intervals, for each of the interval i, check if there exists an interval j whose start point is bigger than or equal to the end point o 阅读全文
posted @ 2017-10-24 15:25
daniel456
阅读(155)
评论(0)
推荐(0)
摘要:
Given a n x n matrix where each of the rows and columns are sorted in ascending order, find the kth smallest element in the matrix. Note that it is th 阅读全文
posted @ 2017-10-24 15:16
daniel456
阅读(213)
评论(0)
推荐(0)
摘要:
You are a product manager and currently leading a team to develop a new product. Unfortunately, the latest version of your product fails the quality c 阅读全文
posted @ 2017-10-24 15:12
daniel456
阅读(132)
评论(0)
推荐(0)

浙公网安备 33010602011771号