自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 230 Kth Smallest Element in a BST

题目链接:https://leetcode.com/problems/kth-smallest-element-in-a-bst/题目:Given a binary search tree, write a function kthSmallest to find the kth smallest element in it.Note: You may assume k is always val

2016-02-18 14:29:18 705

原创 210 Course Schedule II

题目链接:https://leetcode.com/problems/course-schedule-ii/题目:There are a total of n courses you have to take, labeled from 0 to n - 1.Some courses may have prerequisites, for example to take course 0 you h

2016-02-17 22:16:42 758

原创 215 Kth Largest Element in an Array

题目链接:https://leetcode.com/problems/kth-largest-element-in-an-array/题目:Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinc

2016-02-16 22:30:20 467

原创 209 Minimum Size Subarray Sum

题目链接:https://leetcode.com/problems/minimum-size-subarray-sum/题目:Given an array of n positive integers and a positive integer s, find the minimal length of a subarray of which the sum ≥ s. If there isn'

2016-02-16 19:27:22 817

原创 208 Implement Trie (Prefix Tree)

题目链接:https://leetcode.com/problems/implement-trie-prefix-tree/题目:Implement a trie with insert, search, and startsWith methods.Note:You may assume that all inputs are consist of lowercase letters a-z.解

2016-02-16 16:29:45 590

原创 207 Course Schedule

题目链接:https://leetcode.com/problems/course-schedule/题目:There are a total of n courses you have to take, labeled from 0 to n - 1.Some courses may have prerequisites, for example to take course 0 you have

2016-02-13 15:57:44 578

原创 205 Isomorphic Strings

题目链接:https://leetcode.com/problems/isomorphic-strings/题目:Given two strings s and t, determine if they are isomorphic.Two strings are isomorphic if the characters in s can be replaced to get t.All occur

2016-02-05 22:27:09 419

原创 203 Remove Linked List Elements

题目链接:https://leetcode.com/problems/remove-linked-list-elements/题目:Remove all elements from a linked list of integers that have value val.ExampleGiven: 1 --> 2 --> 6 --> 3 --> 4 --> 5 --> 6, val = 6Re

2016-02-05 18:58:30 477

原创 201 Bitwise AND of Numbers Range

题目链接:https://leetcode.com/problems/bitwise-and-of-numbers-range/题目:Given a range [m, n] where 0 <= m <= n <= 2147483647, return the bitwise AND of all numbers in this range, inclusive.For example, give

2016-02-05 18:33:02 636

原创 200 Number of Islands

题目链接:https://leetcode.com/problems/number-of-islands/题目:Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is surrounded by water and is formed by connecting ad

2016-02-05 16:28:23 341

原创 199 Binary Tree Right Side View

题目链接:https://leetcode.com/problems/binary-tree-right-side-view/题目:Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to

2016-02-03 22:14:21 364

原创 198 House Robber

题目链接:https://leetcode.com/problems/house-robber/题目:You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping yo

2016-02-03 21:17:04 3008 2

原创 190 Reverse Bits

题目链接:https://leetcode.com/problems/reverse-bits/题目:Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as 00000010100101000001111010011100), return

2016-02-03 20:39:24 552

原创 189 Rotate Array

题目链接:https://leetcode.com/problems/rotate-array/ 题目: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].Not

2016-02-03 17:31:14 497

原创 123 Best Time to Buy and Sell Stock III

题目链接:https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/题目:Say you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum

2016-02-03 16:20:19 656

原创 188 Best Time to Buy and Sell Stock IV

题目链接:https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/题目:Say you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum p

2016-02-03 16:05:10 639

原创 187 Repeated DNA Sequences

题目链接:https://leetcode.com/problems/repeated-dna-sequences/题目:All DNA is composed of a series of nucleotides abbreviated as A, C, G, and T, for example: "ACGAATTCCG". When studying DNA, it is sometimes

2016-02-02 16:31:36 517

空空如也

空空如也

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

TA关注的人

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