摘要:
Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the hist... 阅读全文
posted @ 2014-12-16 07:50
LiBlog
阅读(208)
评论(0)
推荐(0)
摘要:
Divide two integers without using multiplication, division and mod operator.If it is overflow, return MAX_INT.Solution: 1 public class Solution { 2 ... 阅读全文
posted @ 2014-12-16 06:53
LiBlog
阅读(145)
评论(0)
推荐(0)
摘要:
Given n points on a 2D plane, find the maximum number of points that lie on the same straight line.A better solution: 1 /** 2 * Definition for a po... 阅读全文
posted @ 2014-12-16 06:00
LiBlog
阅读(199)
评论(0)
推荐(0)
摘要:
There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be ... 阅读全文
posted @ 2014-12-16 04:05
LiBlog
阅读(184)
评论(0)
推荐(0)

浙公网安备 33010602011771号