码迷,mamicode.com
首页 >  
搜索关键字:binary trees    ( 12390个结果)
力扣——合并二叉树
给定两个二叉树,想象当你将它们中的一个覆盖到另一个上时,两个二叉树的一些节点便会重叠。 你需要将他们合并为一个新的二叉树。合并的规则是如果两个节点重叠,那么将他们的值相加作为节点合并后的新值,否则不为 NULL 的节点将直接作为新二叉树的节点。 示例 1: ...
分类:其他好文   时间:2019-02-03 23:28:13    阅读次数:211
PWN菜鸡入门之栈溢出(1)
栈溢出 一、基本概念: 函数调用栈情况见链接 基本准备: bss段可执行检测: 函数调用栈情况见链接 bss段可执行检测: ROPgadget ROPgadget --binary rop --only 'pop|ret' | grep 'eax' ROPgadget --binary rop -- ...
分类:其他好文   时间:2019-02-03 18:14:47    阅读次数:421
LC 988. Smallest String Starting From Leaf
Given the root of a binary tree, each node has a value from 0 to 25 representing the letters 'a' to 'z': a value of 0 represents 'a', a value of 1repr ...
分类:其他好文   时间:2019-02-03 14:11:35    阅读次数:195
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 ...
分类:其他好文   时间:2019-02-03 11:08:11    阅读次数:193
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 ...
分类:其他好文   时间:2019-02-03 11:05:02    阅读次数:142
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. ...
分类:其他好文   时间:2019-02-03 10:48:52    阅读次数:224
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: 解题思路:从题目可 ...
分类:其他好文   时间:2019-02-03 10:44:18    阅读次数:181
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 ...
分类:其他好文   时间:2019-02-03 10:41:35    阅读次数:198
LeetCode-102-Binary Tree Level Order Traversal
算法描述: Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level). For example:Given binary t ...
分类:其他好文   时间:2019-02-03 10:40:28    阅读次数:184
LeetCode-103-Binary Tree Zigzag Level Order Traversal
算法描述: Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next leve ...
分类:其他好文   时间:2019-02-03 10:27:16    阅读次数:188
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!