自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 收藏
  • 关注

原创 【Leetcode】Search a 2D Matrix #74

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 from left to right.The first integer of each row

2015-07-27 06:50:54 237

原创 【Leetcode】 Factorial Trailing Zeroes #172

Given an integer n, return the number of trailing zeroes in n!.Note: Your solution should be in logarithmic time complexity.求末尾0的个数,即为求各factor中5的个数,因为每有一个5必有一个2与之组成10。其中factor 5^n 应被计算n次,因为其贡献

2015-07-26 06:27:02 270

原创 【Leetcode】Course Schedule II #210

There are a total of n courses you have to take, labeled from 0 to n - 1.Some courses may have prerequisites, for example to take course 0 you have to first take course 1, which is expressed as a pa

2015-07-26 04:21:57 220

原创 【Leetcode】Largest Rectangle in Histogram #84

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 histogram.Above is a histogram where width o

2015-07-05 10:56:30 178

原创 【Leetcode】Contains Duplicate II #219

Given an array of integers and an integer k, find out whether there there are two distinct indices i and j in the array such that nums[i] = nums[j] and the difference between i and j is at mos

2015-07-04 06:55:57 196

原创 【Leetcode】Course Schedule #207

There are a total of n courses you have to take, labeled from 0 to n - 1.Some courses may have prerequisites, for example to take course 0 you have to first take course 1, which is expressed as

2015-07-04 05:36:59 226

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除