自定义博客皮肤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)
  • 收藏
  • 关注

原创 3. Longest Substring Without Repeating Characters【M】【28】【leetcode】

Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the length is 3. For

2016-03-31 21:49:51 332

原创 2. Add Two Numbers 【M】【72】【leetcode】

You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a link

2016-03-31 17:48:41 312

原创 7. Reverse Integer【E】【27】

Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 click to show spoilers. Have you thought about this? Here are some good questions to ask before cod

2016-03-29 20:15:07 250

原创 【VIP】【图】332. Reconstruct Itinerary【M】【47】

Given a list of airline tickets represented by pairs of departure and arrival airports [from, to], reconstruct the itinerary in order. All of the tickets belong to a man who departs from JFK. Thus,

2016-03-29 19:44:09 440

原创 1. Two Sum【E】【59+25】【leetcode】

Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have exactly one solution. Example: Given nums =

2016-03-21 13:09:46 525

原创 【VIP】322. Coin Change 【M】【53】【动态规划】

You are given coins of different denominations and a total amount of money amount. Write a function to compute the fewest number of coins that you need to make up that amount. If that amount of money

2016-03-21 11:01:36 555

原创 203. Remove Linked List Elements【E】【70】【leetcode】

Remove all elements from a linked list of integers that have value val. Example Given: 1 --> 2 --> 6 --> 3 --> 4 --> 5 --> 6,  val = 6 Return: 1 --> 2 --> 3 --> 4 --> 5 Credits: Special thank

2016-03-19 15:19:35 685

原创 338. Counting Bits【M】【leetcode题解】

Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation and return them as an array. Example: For num =

2016-03-19 14:02:43 1275 1

原创 61. Rotate List【M】【54】【leetcode】

Given a list, rotate the list to the right by k places, where k is non-negative. For example: Given 1->2->3->4->5->NULL and k = 2, return 4->5->1->2->3->NULL. Subscribe to see which

2016-03-18 16:30:34 372

原创 【VIP】189. Rotate Array 【E】【85】【leetcode】

Rotate an array of n elements to the right by k steps. For example, with n = 7 and k = 3, the array [1,2,3,4,5,6,7] is rotated to [5,6,7,1,2,3,4].  Note: Try to come up as many solutions as y

2016-03-18 16:18:13 332

原创 330. Patching Array【M】【84】【leetcode】

Given a sorted positive integer array nums and an integer n, add/patch elements to the array such that any number in range [1, n] inclusive can be formed by the sum of some elements in the array. Re

2016-03-18 12:22:17 418

原创 86. Partition List【M】【48】【leetcode题解】

Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x. You should preserve the original relative order of the nodes in each of

2016-03-16 19:16:15 352

原创 67. Add Binary【E】【44】【leetcode】

Given two binary strings, return their sum (also a binary string). For example, a = "11" b = "1" Return "100". Subscribe to see which companies asked this question

2016-03-14 23:06:54 416

原创 290. Word Pattern【E】【47】

Given a pattern and a string str, find if str follows the same pattern. Here follow means a full match, such that there is a bijection between a letter in pattern and a non-empty word in str.

2016-03-01 14:12:47 313

空空如也

空空如也

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

TA关注的人

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