上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页

LeetCode-129-Sum Root to Leaf Numbers

摘要: 算法描述: Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number. An example is the root-to-leaf path 1->2-> 阅读全文
posted @ 2019-02-05 19:38 无名路人甲 阅读(132) 评论(0) 推荐(0)

LeetCode-127-Word Ladder

摘要: 算法描述: Given two words (beginWord and endWord), and a dictionary's word list, find the length of shortest transformation sequence from beginWord to end 阅读全文
posted @ 2019-02-05 19:14 无名路人甲 阅读(125) 评论(0) 推荐(0)

LeetCode-120-Triangle

摘要: 算法描述: Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. For example, given 阅读全文
posted @ 2019-02-05 17:27 无名路人甲 阅读(153) 评论(0) 推荐(0)

LeetCode-117-Populating Next Right Pointers in Each Node II

摘要: 算法描述: Given a binary tree Populate each next pointer to point to its next right node. If there is no next right node, the next pointer should be set t 阅读全文
posted @ 2019-02-05 16:04 无名路人甲 阅读(109) 评论(0) 推荐(0)

LeetCode-116-Populating Next Right Pointers in Each Node

摘要: 算法描述: Given a binary tree Populate each next pointer to point to its next right node. If there is no next right node, the next pointer should be set t 阅读全文
posted @ 2019-02-05 16:03 无名路人甲 阅读(129) 评论(0) 推荐(0)

LeetCode-114-Flatten Binary Tree to Linked List

摘要: 算法描述: Given a binary tree, flatten it to a linked list in-place. For example, given the following tree: The flattened tree should look like: 解题思路:从题目可 阅读全文
posted @ 2019-02-03 08:49 无名路人甲 阅读(105) 评论(0) 推荐(0)

LeetCode-113-Path Sum II

摘要: 算法描述: Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum. Note: A leaf is a node with no children. 阅读全文
posted @ 2019-02-03 08:08 无名路人甲 阅读(171) 评论(0) 推荐(0)

LeetCode-109-Convert Sorted List to Binary Search Tree

摘要: 算法描述: Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST. For this problem, a height-balance 阅读全文
posted @ 2019-02-03 07:49 无名路人甲 阅读(114) 评论(0) 推荐(0)

LeetCode-106-Construct Binary Tree from Inorder and Postorder Traversal

摘要: 算法描述: Given inorder and postorder traversal of a tree, construct the binary tree. Note:You may assume that duplicates do not exist in the tree. For ex 阅读全文
posted @ 2019-02-03 07:37 无名路人甲 阅读(89) 评论(0) 推荐(0)

LeetCode-105-Construct Binary Tree from Preorder and Inorder Traversal

摘要: 算法描述: Given preorder and inorder traversal of a tree, construct the binary tree. Note:You may assume that duplicates do not exist in the tree. For exa 阅读全文
posted @ 2019-02-03 07:22 无名路人甲 阅读(111) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页