摘要:
题目连接https://leetcode.com/problems/plus-one/Plus OneDescriptionGiven a non-negative number represented as an array of digits, plus one to the number.Th... 阅读全文
posted @ 2015-12-09 20:44
GadyPu
阅读(213)
评论(0)
推荐(0)
摘要:
题目连接https://leetcode.com/problems/add-binary/Add BinaryDescriptionGiven two binary strings, return their sum (also a binary string).For example,a = “1... 阅读全文
posted @ 2015-12-09 20:42
GadyPu
阅读(201)
评论(0)
推荐(0)
摘要:
题目连接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 m... 阅读全文
posted @ 2015-12-09 20:40
GadyPu
阅读(155)
评论(0)
推荐(0)
摘要:
题目连接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 c... 阅读全文
posted @ 2015-12-09 20:37
GadyPu
阅读(191)
评论(0)
推荐(0)
摘要:
题目连接https://leetcode.com/problems/path-sum/Path Sum/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; *... 阅读全文
posted @ 2015-12-09 20:33
GadyPu
阅读(168)
评论(0)
推荐(0)
摘要:
题目连接https://leetcode.com/problems/path-sum-ii/Path Sum II/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *l... 阅读全文
posted @ 2015-12-09 20:31
GadyPu
阅读(199)
评论(0)
推荐(0)
摘要:
题目连接https://leetcode.com/problems/flatten-binary-tree-to-linked-list/Flatten Binary Tree to Linked ListDescription/** * Definition for a binary tree n... 阅读全文
posted @ 2015-12-09 20:29
GadyPu
阅读(138)
评论(0)
推荐(0)
摘要:
题目连接https://leetcode.com/problems/pascals-triangle/Pascal's TriangleDescriptionGiven numRows, generate the first numRows of Pascal’s triangle.For exam... 阅读全文
posted @ 2015-12-09 20:26
GadyPu
阅读(149)
评论(0)
推荐(0)
摘要:
题目连接https://leetcode.com/problems/triangle/TriangleDescriptionGiven a triangle, find the minimum path sum from top to bottom. Each step you may move t... 阅读全文
posted @ 2015-12-09 20:24
GadyPu
阅读(153)
评论(0)
推荐(0)
摘要:
题目连接https://leetcode.com/problems/valid-palindrome/Valid PalindromeDescriptionGiven a string, determine if it is a palindrome, considering only alphan... 阅读全文
posted @ 2015-12-09 20:20
GadyPu
阅读(175)
评论(0)
推荐(0)
摘要:
题目连接 https://leetcode.com/problems/word-ladder/ Word Ladder Description Given two words (beginWord and endWord), and a dictionary’s word list, find th 阅读全文
posted @ 2015-12-09 20:17
GadyPu
阅读(161)
评论(0)
推荐(0)
摘要:
题目连接https://leetcode.com/problems/longest-consecutive-sequence/Longest Consecutive SequenceDescriptionGiven an unsorted array of integers, find the le... 阅读全文
posted @ 2015-12-09 20:15
GadyPu
阅读(164)
评论(0)
推荐(0)
摘要:
题目连接https://leetcode.com/problems/sum-root-to-leaf-numbers/Sum Root to Leaf NumbersDescriptionGiven a binary tree containing digits from 0-9 only, eac... 阅读全文
posted @ 2015-12-09 20:12
GadyPu
阅读(139)
评论(0)
推荐(0)
摘要:
题目连接https://leetcode.com/problems/clone-graph/Clone GraphDescriptionClone an undirected graph. Each node in the graph contains a label and a list of i... 阅读全文
posted @ 2015-12-09 20:09
GadyPu
阅读(144)
评论(0)
推荐(0)
摘要:
题目连接https://leetcode.com/problems/evaluate-reverse-polish-notation/Evaluate Reverse Polish NotationDescriptionEvaluate the value of an arithmetic expr... 阅读全文
posted @ 2015-12-09 20:07
GadyPu
阅读(145)
评论(0)
推荐(0)
摘要:
题目连接https://leetcode.com/problems/reverse-words-in-a-string/Reverse Words in a StringDescriptionGiven an input string, reverse the string word by word... 阅读全文
posted @ 2015-12-09 20:04
GadyPu
阅读(137)
评论(0)
推荐(0)
摘要:
题目连接https://leetcode.com/problems/min-stack/Min StackDescriptionDesign a stack that supports push, pop, top, and retrieving the minimum element in con... 阅读全文
posted @ 2015-12-09 20:02
GadyPu
阅读(141)
评论(0)
推荐(0)
摘要:
题目连接https://leetcode.com/problems/excel-sheet-column-title/Excel Sheet Column TitleDescriptionGiven a positive integer, return its corresponding colum... 阅读全文
posted @ 2015-12-09 19:58
GadyPu
阅读(160)
评论(0)
推荐(0)
摘要:
题目连接https://leetcode.com/problems/majority-element/Majority ElementDescriptionGiven an array of size n, find the majority element. The majority elemen... 阅读全文
posted @ 2015-12-09 19:56
GadyPu
阅读(115)
评论(0)
推荐(0)
摘要:
题目连接https://leetcode.com/problems/excel-sheet-column-number/Excel Sheet Column NumberDescriptionRelated to question Excel Sheet Column TitleGiven a co... 阅读全文
posted @ 2015-12-09 19:54
GadyPu
阅读(193)
评论(0)
推荐(0)

浙公网安备 33010602011771号