自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(10)
  • 收藏
  • 关注

原创 【LeetCode OJ 28】Implement strStr()

题目链接:https://leetcode.com/problems/implement-strstr/题目:implement strStr().Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.解题思路:题意为在字符

2016-01-26 16:53:20 1086 1

原创 【LeetCode OJ 260】Single Number III

题目链接:https://leetcode.com/problems/single-number-iii/题目:Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two

2016-01-25 16:30:53 1777 3

原创 【LeetCode OJ 41】First Missing Positive

题目链接:https://leetcode.com/problems/first-missing-positive/题目:Given an unsorted integer array, find the first missing positive integer.For example,Given [1,2,0] return 3,and [3,4,-1,1] return

2016-01-25 09:18:28 705

原创 【LeetCode OJ 136】Single Number

题目链接:https://leetcode.com/problems/single-number/题目:Given an array of integers, every element appears twice except for one. Find that single one.Note:Your algorithm should have a linear runt

2016-01-21 16:11:36 2523

原创 【LeetCode OJ 34】Search for a Range

题目链接:https://leetcode.com/problems/search-for-a-range/题目:Given a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime complexity must

2016-01-21 11:06:51 1174

原创 【LeetCode OJ 237】Delete Node in a Linked List

题目链接:https://leetcode.com/problems/delete-node-in-a-linked-list/题目:Write a function to delete a node (except the tail) in a singly linked list, given only access to that node.Supposed the linked

2016-01-20 15:03:51 1352

原创 【LeetCode OJ 263】Ugly Number

题目链接:https://leetcode.com/problems/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. Fo

2016-01-19 22:01:13 1439

原创 【LeetCode OJ 016】3Sum Closest

题目链接:https://leetcode.com/problems/3sum-closest/题目:Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three in

2016-01-19 21:20:17 996

原创 【LeetCode OJ 242】Valid Anagram

题目链接:https://leetcode.com/problems/valid-anagram/题目:Given two strings s and t, write a function to determine if t is an anagram of s.For example,s = "anagram", t = "nagaram", return true

2016-01-18 19:53:18 1321

原创 【LeetCode OJ 258】Add Digits

题目链接:https://leetcode.com/problems/add-digits/题目:Given a non-negative integer num, repeatedly add all its digits until the result has only one digit.For example:Given num = 38, the pro

2016-01-15 20:18:50 824

空空如也

空空如也

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

TA关注的人

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