摘要:
Given a collection of intervals, merge all overlapping intervals.For example,Given[1,3],[2,6],[8,10],[15,18],return[1,6],[8,10],[15,18]. 1 /** 2 * De... 阅读全文
posted @ 2015-01-10 22:18
Eason Liu
阅读(167)评论(0)推荐(0)
编辑
摘要:
Related to questionExcel Sheet Column TitleGiven a column title as appear in an Excel sheet, return its corresponding column number.For example: A ... 阅读全文
posted @ 2015-01-09 19:48
Eason Liu
阅读(147)评论(0)推荐(0)
编辑
摘要:
Write a program to find the node at which the intersection of two singly linked lists begins.For example, the following two linked lists:A: a... 阅读全文
posted @ 2015-01-09 19:44
Eason Liu
阅读(162)评论(0)推荐(0)
编辑
摘要:
Follow upfor "Find Minimum in Rotated Sorted Array":What ifduplicatesare allowed?Would this affect the run-time complexity? How and why?Suppose a sort... 阅读全文
posted @ 2015-01-09 19:42
Eason Liu
阅读(135)评论(0)推荐(0)
编辑
摘要:
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) -- Push element x onto stack.pop() -- Removes... 阅读全文
posted @ 2015-01-08 11:58
Eason Liu
阅读(414)评论(0)推荐(0)
编辑
摘要:
Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e.,0 1 2 4 5 6 7might become4 5 6 7 0 1 2).Find the minimum element.You m... 阅读全文
posted @ 2015-01-08 11:45
Eason Liu
阅读(171)评论(0)推荐(0)
编辑
摘要:
Find the contiguous subarray within an array (containing at least one number) which has the largest product.For example, given the array[2,3,-2,4],the... 阅读全文
posted @ 2015-01-08 11:26
Eason Liu
阅读(123)评论(0)推荐(0)
编辑