自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 leetcode14

14、Longest Common Prefix Write a function to find the longest common prefix string amongst an array of strings.class Solution(object): def longestCommonPrefix(self, strs): """ :ty

2016-06-03 18:12:23 457

原创 leetcode 165

165 easy Compare Version Numbers *Compare two version numbers version1 and version2. If version1 > version2 return 1, if version1 < version2 return -1, otherwise return 0. You may assume that the ve

2016-06-02 20:32:27 357

原创 leetcode7

7 easy****Reverse Integer *Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321**class Solution(object): def reverse(self, x): """ :type x

2016-06-02 13:01:11 430

原创 leetcode58

58 easy Length of Last Word *Given a string s consists of upper/lower-case alphabets and empty space characters ’ ‘, return the length of last word in the string. If the last word does not exist, ret

2016-06-02 11:49:56 403

原创 leetcode263

263 easy ugly number *Write a program to check whether a given number is an ugly number. Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. For example, 6, 8 are ugly while 1

2016-06-02 11:21:10 412

原创 leetcode350

350、easy Intersection of Two Arrays II Given two arrays, write a function to compute their intersection.Example: Given nums1 = [1, 2, 2, 1], nums2 = [2, 2], return [2, 2].Note: Each element in the

2016-06-02 11:17:35 387

原创 leetcode349

349 easy Intersection of Two Arrays *Given two arrays, write a function to compute their intersection. Example: Given nums1 = [1, 2, 2, 1], nums2 = [2, 2], return [2]. Note: Each element in the

2016-06-01 15:52:20 374

原创 leetcode27

Remove Element*Given an array and a value, remove all instances of that value in place and return the new length. Do not allocate extra space for another array, you must do this in place with constant

2016-06-01 15:35:50 342

原创 leetcode283

Move Zeroes *Given 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], after c

2016-06-01 15:17:29 333

原创 leetcode345

easy,345 *Write a function that takes a string as input and reverse only the vowels of a string. Example 1: Given s = “hello”, return “holle”. Example 2: Given s = “leetcode”, return “leotcede”.*

2016-06-01 13:49:19 533

原创 leetcode344

easy:344、Reverse String Write a function that takes a string as input and returns the string reversed. 我自己是这样写的:class Solution(object): def reverseString(self, s): """ :type s: st

2016-06-01 12:49:23 308

空空如也

空空如也

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

TA关注的人

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