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