码迷,mamicode.com
首页 >  
搜索关键字:binary trees    ( 12390个结果)
base64编码
Base64 is a group of similar binary-to-text encoding schemes that represent binary data in an ASCII string format by translating it into a radix-64 re ...
分类:其他好文   时间:2017-05-26 23:37:42    阅读次数:259
[Binary Hacking] ABI and EABI
Following are some general papers about ABI and EABI. Entrance https://en.wikipedia.org/wiki/Application_binary_interface PowerPc Embedded Application ...
分类:其他好文   时间:2017-05-26 23:27:54    阅读次数:295
[LeetCode] Flatten Binary Tree to Linked List
Given a binary tree, flatten it to a linked list in-place. For example, Given 1 / \ 2 5 / \ \ 3 4 6 The flattened tree should look like: 1 \ 2 \ 3 \ 4 ...
分类:其他好文   时间:2017-05-26 12:00:08    阅读次数:168
【Lintcode】070.Binary Tree Level Order Traversal II
题目: Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root). ...
分类:其他好文   时间:2017-05-26 10:41:34    阅读次数:204
【LeetCode】297. Serialize and Deserialize Binary Tree
二叉树的序列化与反序列化。 如果使用string作为媒介来存储,传递序列化结果的话,会给反序列话带来很多不方便。 这里学会了使用 sstream 中的 输入流'istringstream' 和 输出流'ostringstream'. istringstream in; in >> str; 这里没执 ...
分类:其他好文   时间:2017-05-25 23:37:01    阅读次数:255
TreeMap源码分析之一 —— 排序二叉树、平衡二叉树、红黑树
一、排序二叉树(BST树) 1.排序二叉树的定义 排序二叉树,Binary Sort Tree 排序二叉树要么是一棵空二叉树,要么是具有下列性质的二叉树: (1)若它的左子树不空,则左子树上所有节点的值均小于它的根节点的值; (2)若它的右子树不空,则右子树上所有节点的值均大于它的根节点的值; (3 ...
分类:编程语言   时间:2017-05-25 23:20:24    阅读次数:241
树状数组
树状数组(Binary Indexed Tree(BIT), Fenwick Tree) 是一个查询和修改的复杂度都为 log(n) 的数据结构。 观察下图: 令这棵树的结点编号为 C?1??,C?2??,…,C?n??。令每个结点的值为这棵树的值的总和,那么容易发现: C?1??=A?1?? C? ...
分类:编程语言   时间:2017-05-25 19:05:34    阅读次数:223
Mysql学习笔记004
接着前面的写 选择特殊的列 举个栗子:我想给这些pet们过身日,我就要知道pet们的名字和他们的生日。我该怎么办? 操作如下: SELECT name, birth FROM pet; mysql> SELECT name, birth -> FROM pet;+ + +| name | birth ...
分类:数据库   时间:2017-05-25 19:03:27    阅读次数:236
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 level a ...
分类:其他好文   时间:2017-05-25 13:36:46    阅读次数:154
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 tree ...
分类:其他好文   时间:2017-05-25 11:47:44    阅读次数:183
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!