自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

转载 leetcode 126 Word Ladder II

题目连接https://leetcode.com/problems/word-ladder-ii/Word Ladder IIDescriptionGiven two words (beginWordandendWord), and a dictionary's word list, find all shortest transformation sequenc...

2016-06-30 21:55:00 155

转载 leetcode 367 Valid Perfect Square

题目连接https://leetcode.com/problems/valid-perfect-square/Valid Perfect SquareDescriptionGiven a positive integernum, write a function which returns True ifnumis a perfect square else Fa...

2016-06-30 21:14:00 147

转载 leetcode 332 Reconstruct Itinerary

题目连接https://leetcode.com/problems/reconstruct-itinerary/Reconstruct ItineraryDescriptionGiven a list of airline tickets represented by pairs of departure and arrival airports[from, to],...

2016-06-23 23:09:00 138

转载 leetcode 226 Invert Binary Tree

题目连接https://leetcode.com/problems/invert-binary-tree/Invert Binary TreeDescriptionInvert a binary tree. 4 / \ 2 7 / \ / \1 3 6 9to 4 / \ 7 ...

2016-06-23 22:44:00 122

转载 leetcode 109 Convert Sorted List to Binary Search Tree

题目连接https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/Convert Sorted List to Binary Search TreeDescriptionGiven a singly linked list where elements are sorted in asc...

2016-06-23 22:36:00 58

转载 leetcode 108 Convert Sorted Array to Binary Search Tree

题目连接https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/Convert Sorted Array to Binary Search TreeDescriptionGiven an array where elements are sorted in ascending or...

2016-06-23 22:29:00 78

转载 leetcode 18 4Sum

题目连接https://leetcode.com/problems/4sum/4SumDescriptionGiven an array $S$ of n integers, are there elements $a, b, c,$ and d in $S$ such that $a + b + c + d = target?$ Find all unique qu...

2016-06-22 21:57:00 76

转载 leetcode 71 Simplify Path

题目连接https://leetcode.com/problems/simplify-path/Simplify PathDescriptionGiven an absolute path for a file (Unix-style), simplify it.For example,path="/home/", =>"/home"path="/a...

2016-06-19 22:25:00 76

转载 leetcode 10 Regular Expression Matching

题目连接https://leetcode.com/problems/regular-expression-matching/Regular Expression MatchingDescriptionImplement regular expression matching with support for'.'and'*'.'.' Matches any ...

2016-06-19 22:07:00 64

转载 leetcode 30 Substring with Concatenation of All Words

题目连接https://leetcode.com/problems/substring-with-concatenation-of-all-words/Substring with Concatenation of All WordsDescriptionYou are given a string,s, and a list of words,words, th...

2016-06-19 22:00:00 79

转载 leetcode 355 Design Twitte

题目连接https://leetcode.com/problems/design-twitterDesign TwitteDescriptionDesign a simplified version of Twitter where users can post tweets, follow/unfollow another user and is able to see...

2016-06-12 19:41:00 97

转载 leetcode LRU Cache

题目连接https://leetcode.com/problems/lru-cache/LRU CacheDescriptionDesign and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations:ge...

2015-12-11 21:30:00 69

转载 leetcode 3Sum

题目连接https://leetcode.com/problems/3sum/3SumDescriptionGiven an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which...

2015-12-11 21:15:00 50

转载 leetcode Letter Combinations of a Phone Number

题目连接https://leetcode.com/problems/letter-combinations-of-a-phone-number/Letter Combinations of a Phone NumberDescriptionGiven a digit string, return all possible letter combinations tha...

2015-12-11 21:08:00 105

转载 leetcode Remove Nth Node From End of List

题目连接https://leetcode.com/problems/remove-nth-node-from-end-of-list/Remove Nth Node From End of ListDescriptionGiven a linked list, remove the $n^{th}$ node from the end of list and return...

2015-12-11 21:05:00 84

转载 leetcode Valid Parentheses

题目连接https://leetcode.com/problems/valid-parentheses/Valid ParenthesesDescriptionGiven a string containing just the characters ‘(‘, ‘)’, ‘{‘, ‘}’, ‘[’ and ‘]’, determine if the input stri...

2015-12-11 21:02:00 51

转载 leetcode Merge k Sorted Lists

题目连接https://leetcode.com/problems/merge-k-sorted-lists/Merge k Sorted ListsDescriptionMerge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity....

2015-12-11 20:58:00 77

转载 leetcode Remove Element

题目连接https://leetcode.com/problems/remove-element/Remove ElementDescriptionGiven an array and a value, remove all instances of that value in place and return the new length.The order of...

2015-12-11 20:55:00 100

转载 leetcode Implement strStr()

题目连接https://leetcode.com/problems/implement-strstr/Implement strStr()DescriptionImplement strStr().Returns the index of the first occurrence of needle in haystack, or -1 if needle is ...

2015-12-11 20:53:00 78

转载 leetcode Next Permutation

题目连接https://leetcode.com/problems/next-permutation/Next PermutationDescriptionImplement next permutation, which rearranges numbers into the lexicographically next greater permutation of ...

2015-12-11 20:50:00 74

转载 leetcode Longest Valid Parentheses

题目连接https://leetcode.com/problems/longest-valid-parentheses/Longest Valid ParenthesesDescriptionGiven a string containing just the characters ‘(’ and ‘)’, find the length of the longest ...

2015-12-11 20:47:00 73

转载 leetcode Valid Sudoku

题目连接https://leetcode.com/problems/valid-sudoku/Valid SudokuDescriptionDetermine if a Sudoku is valid, according to:Sudoku Puzzles - The Rules.The Sudoku board could be partially fille...

2015-12-11 20:44:00 89

转载 leetcode Sudoku Solver

题目连接https://leetcode.com/problems/sudoku-solver/Sudoku SolverDescriptionWrite a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character...

2015-12-11 20:39:00 60

转载 leetcode Count and Say

题目连接https://leetcode.com/problems/count-and-say/Count and SayDescriptionThe count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1 is rea...

2015-12-11 20:34:00 69

转载 leetcode Multiply Strings

题目连接https://leetcode.com/problems/multiply-strings/Multiply StringsDescriptionGiven two numbers represented as strings, return multiplication of the numbers as a string.Note:The numb...

2015-12-11 20:26:00 94

转载 leetcode Group Anagrams

题目连接https://leetcode.com/problems/anagrams/Group AnagramsDescriptionGiven an array of strings, group anagrams together.For example, given: [“eat”, “tea”, “tan”, “ate”, “nat”, “bat”],...

2015-12-11 20:21:00 72

转载 leetcode Spiral Matrix

题目连接https://leetcode.com/problems/spiral-matrix/Spiral MatrixDescriptionGiven a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order.For exam...

2015-12-11 20:15:00 87

转载 leetcode Length of Last Word

题目连接https://leetcode.com/problems/length-of-last-word/Length of Last WordDescriptionGiven a string s consists of upper/lower-case alphabets and empty space characters ’ ‘, return the le...

2015-12-11 20:12:00 70

转载 leetcode Plus One

题目连接https://leetcode.com/problems/plus-one/Plus OneDescriptionGiven a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the...

2015-12-09 20:44:00 73

转载 leetcode Add Binary

题目连接https://leetcode.com/problems/add-binary/Add BinaryDescriptionGiven two binary strings, return their sum (also a binary string).For example,a = “11”b = “1”Return “100”.clas...

2015-12-09 20:42:00 68

转载 leetcode Search a 2D Matrix

题目连接https://leetcode.com/problems/search-a-2d-matrix/Search a 2D MatrixDescriptionWrite an efficient algorithm that searches for a value in an m x n matrix. This matrix has the followin...

2015-12-09 20:40:00 82

转载 leetcode Word Search

题目连接https://leetcode.com/problems/word-search/Word SearchDescriptionGiven a 2D board and a word, find if the word exists in the grid.The word can be constructed from letters of sequen...

2015-12-09 20:37:00 64

转载 leetcode Path Sum

题目连接https://leetcode.com/problems/path-sum/Path Sum/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; *...

2015-12-09 20:33:00 52

转载 leetcode Path Sum II

题目连接https://leetcode.com/problems/path-sum-ii/Path Sum II/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right...

2015-12-09 20:31:00 82

转载 leetcode Flatten Binary Tree to Linked List

题目连接https://leetcode.com/problems/flatten-binary-tree-to-linked-list/Flatten Binary Tree to Linked ListDescription/** * Definition for a binary tree node. * struct TreeNode { * ...

2015-12-09 20:29:00 81

转载 leetcode Pascal's Triangle

题目连接https://leetcode.com/problems/pascals-triangle/Pascal's TriangleDescriptionGiven numRows, generate the first numRows of Pascal’s triangle.For example, given numRows = 5,Return...

2015-12-09 20:26:00 69

转载 leetcode Triangle

题目连接https://leetcode.com/problems/triangle/TriangleDescriptionGiven a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below...

2015-12-09 20:24:00 95

转载 leetcode Valid Palindrome

题目连接https://leetcode.com/problems/valid-palindrome/Valid PalindromeDescriptionGiven a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases...

2015-12-09 20:20:00 85

转载 leetcode Word Ladder

题目连接https://leetcode.com/problems/word-ladder/Word LadderDescriptionGiven two words (beginWord and endWord), and a dictionary’s word list, find the length of shortest transformation seq...

2015-12-09 20:17:00 98

转载 leetcode Longest Consecutive Sequence

题目连接https://leetcode.com/problems/longest-consecutive-sequence/Longest Consecutive SequenceDescriptionGiven an unsorted array of integers, find the length of the longest consecutive ele...

2015-12-09 20:15:00 84

空空如也

空空如也

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

TA关注的人

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