自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 leetcode submission/20161018(move zeroes)

明天发工资啊666Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements.For example, given nums = [0, 1, 0, 3, 12]

2016-10-19 00:00:25 237

原创 leetcode submission/20161016(find the difference)

Given two strings s and t which consist of only lowercase letters.String t is generated by random shuffling string s and then add one more letter at a random position.Find the letter that was

2016-10-16 16:00:10 203

原创 leetcode submission/20161013(add digits)

今天突然多了一堆bug,神烦Topic:Given a non-negative integer num, repeatedly add all its digits until the result has only one digit.For example:Given num = 38, the process is like: 3 + 8 =

2016-10-13 23:52:40 202

原创 leetcode submission/20161012(sum of two integers)

Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -.Example:Given a = 1 and b = 2, return 3.解题思路还是和之前算过的single number一样,利用进位原则:1、输入 a,b 2

2016-10-11 23:37:44 197

原创 leetcode submission/20161006(Single number)

MD假期要没了啊FUCKING SHIT。。。。Given an array of integers, every element appears twice except for one. Find that single one.Note:Your algorithm should have a linear runtime complexity. Could you im

2016-10-06 14:01:58 213

原创 leetcode submission/20161004(Valid Perfect Square)

Given a positive integer num, write a function which returns True if num is a perfect square else False.Note: Do not use any built-in library function such as sqrt.Example 1:Input: 1

2016-10-05 00:58:57 186

原创 leetcode submission/20161004(nim game)

讲真我个人不是很喜欢coding,因为对于算法这一类玩意儿总是记不住,平时靠感觉写东西的时候比较多,再加上前段时间忙着找房子,买房子(坐标北京),耽误了点儿时间,赶上国庆才抽空写点儿,不过还是希望养成个习惯,每隔几天刷一道题,不然就废了。(对了房子买的是南四环那儿,中海御鑫阁,妈的齁B贵,将近七万一平的两居。。。)let's cut the crap thenthis the

2016-10-04 23:51:45 237

原创 leetcode submission/20160720(reverse string)

I choose a rather easy topic, cause' it's the first time that I code in leetcode, prior object is to test.Topic:Reverse StringWrite a function that takes a string as input and returns the st

2016-07-20 15:57:19 209

空空如也

空空如也

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

TA关注的人

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