自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

转载 Word Break

Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words.For example, givens = "leetcode",dict = ["leet"

2014-08-24 07:27:11 258

原创 Remove Element

Given an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. It doesn't matter what you leave beyond the new length.

2014-08-22 12:50:36 234

转载 Divide Two Integers(improve)

Divide two integers without using multiplication, division and mod operator.

2014-08-22 11:57:45 251

转载 Permutations II(improve)

Given a collection of numbers that might contain duplicates, return all possible unique permutations.For example,[1,1,2] have the following unique permutations:[1,1,2], [1,2,1], and [2,1,1].

2014-08-22 07:04:38 212

转载 Maximum Subarray(improve)

Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array [−2,1,−3,4,−1,2,1,−5,4],the contiguous subarray [4,−1,2,1] ha

2014-08-22 06:02:50 232

原创 Maximum Subarray

Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array [−2,1,−3,4,−1,2,1,−5,4],the contiguous subarray [4,−1,2,1] ha

2014-08-22 05:32:38 263

转载 Permutations(improve)

Given a collection of numbers, return all possible permutations.For example,[1,2,3] have the following permutations:[1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1,2], and [3,2,1].I can {CSDN

2014-08-21 13:28:46 216

转载 Max Points on a Line(improve)

Given n points on a 2D plane, find the maximum number of points that lie on the same straight line.

2014-08-21 10:02:20 276

转载 Reverse Word in a String(improve)

Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".class Solution: # @param s, a string # @return a string

2014-08-21 09:03:01 307

原创 Max Points on a Line

Given n points on a 2D plane, find the maximum number of points that lie on the same straight line.

2014-08-21 08:50:33 229

转载 Evaluate Reverse Polish Notation (improve)

创建代码片

2014-08-21 06:32:16 310

原创 Evaluate Reverse Polish Notation

Evaluate the value of an arithmetic expression in Reverse Polish Notation.Valid operators are +, -, *, /. Each operand may be an integer or another expression.Some examples:["2", "1", "+",

2014-08-20 00:26:47 206

原创 1st day here

While,  it has been a long time since I start to write something. Three years been here and I have changed a lot, in a good way.Here is my plan:1. record everyday life here.2. start to loo

2014-08-20 00:11:32 255

原创 Reverse Word in a String

Given an input string, reverse the string word by word.For example,Given s = "the sky is blue", return "blue is sky the".Clarification:What constitutes a word? A sequence of non-space

2014-08-20 00:11:15 268

空空如也

空空如也

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

TA关注的人

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